HiRISE
 Observation

Classes | Public Member Functions | Public Attributes | Static Public Attributes

Label_Patcher Class Reference

#include <Label_Patcher.hh>

Collaboration diagram for Label_Patcher:
Collaboration graph
[legend]

List of all members.

Classes

struct  Database_Configuration

Public Member Functions

 Label_Patcher (int count, char **arguments)
idaeim::PVL::Parameterlabel_parameter (const std::string &pathname)
void configure_database ()
void connect_to_database ()
std::string database_field_value (const std::string &field, const std::string &key, const std::string &table="")
std::string database_configuration_report ()
std::string database_connection_report ()
void disconnect_from_database ()
int apply_patch ()

Public Attributes

static const char *const *const OBSERVATION_ID_PARAMETER = "OBSERVATION_ID"
static const char *const DATA_LOCATION_PREFIX = '^'
static const char *const *const TYPE_PARAMETER = "Type"
static const char *const
*const *const 
SERVER_PARAMETER = "Server"
static const char *const
*const *const *const 
HOST_PARAMETER = "Host"
static const char *const
*const *const *const *const 
USER_PARAMETER = "User"
static const char *const
*const *const *const *const
*const 
PASSWORD_PARAMETER = "Password"
static const char *const
*const *const *const *const
*const *const 
CATALOG_PARAMETER = "Catalog"
static const char *const
*const *const *const *const
*const *const *const 
TABLE_PARAMETER = "Table"
static const int BAD_SYNTAX = 1
static const int CONFIGURATION_FAILURE = 2
static const int DATABASE_ERROR = 3
static const int INVALID_ARGUMENT = 11
static const int LENGTH_ERROR = 12
static const int UNDERFLOW_ERROR = 13
static const int OUT_OF_RANGE = 14
static const int LOGIC_ERROR = 19
static const int NO_INPUT_FILE = 20
static const int NO_OUTPUT_FILE = 21
static const int NO_PVL_FILE = 23
static const int IO_FAILURE = 29
static const int PVL_ERROR = 30
static const int UNKNOWN_ERROR = -1
bool Backup
bool Force
bool Verbose
std::string Input_Pathname
std::ifstream * Input_File
idaeim::PVL::AggregatePDS_Label
idaeim::PVL::Lister PDS_Label_Lister
 PDS formatting of PVL.
idaeim::PVL::ParameterLabel_Size_Parameter
std::string Observation_ID
 The Observation ID value used to select a database record.
struct
UA::HiRISE::Label_Patcher::Database_Configuration 
Database_Configuration_Values

Static Public Attributes

static const char *const ID = "UA::HiRISE::Label_Patcher (1.9 2020/02/25 00:21:30)"
 Class identification name with source code version and date.
static const char *const PDS_VERSION_ID_PARAMETER = "PDS_VERSION_ID"
 Names of parameters to be accessed.
static const char *const LABEL_RECORDS_PARAMETER = "LABEL_RECORDS"
 Names of parameters that will have values changed if label size changes.
static const char *const LOOKUP_CONVERSION_TABLE = "MRO:LOOKUP_CONVERSION_TABLE"
 Names of parameters requiring ad hoc formatting adjustment.
static const char *const DATABASE_TYPE = "MySQL"
 Database access configuration parameters.
static const char *const OBSERVATION_ID_FIELD = "COMMANDED_ID"
 Database field names.
static const int SUCCESS = 0
 Exit status values.

Constructor & Destructor Documentation

Label_Patcher ( int  count,
char **  arguments 
)

Member Function Documentation

idaeim::PVL::Parameter * label_parameter ( const std::string &  pathname )

Referenced by main().

void configure_database (  )
void connect_to_database (  )

Referenced by database_value(), and main().

std::string database_field_value ( const std::string &  field,
const std::string &  key,
const std::string &  table = "" 
)

References connect_to_database(), and DB_QUERY_EXCEPTION.

Referenced by database_value(), and main().

string database_configuration_report (  )

Referenced by database_value(), and main().

string database_connection_report (  )

Referenced by database_value(), and main().

void disconnect_from_database (  )

Referenced by main().

int apply_patch (  )

Member Data Documentation

const char *const ID = "UA::HiRISE::Label_Patcher (1.9 2020/02/25 00:21:30)" [static]

Class identification name with source code version and date.

const char *const PDS_VERSION_ID_PARAMETER = "PDS_VERSION_ID" [static]

Names of parameters to be accessed.

const char *const *const OBSERVATION_ID_PARAMETER = "OBSERVATION_ID"
const char *const LABEL_RECORDS_PARAMETER = "LABEL_RECORDS" [static]

Names of parameters that will have values changed if label size changes.

Referenced by main(), and usage().

const char *const DATA_LOCATION_PREFIX = '^'

Referenced by main(), and usage().

const char *const LOOKUP_CONVERSION_TABLE = "MRO:LOOKUP_CONVERSION_TABLE" [static]

Names of parameters requiring ad hoc formatting adjustment.

const char *const DATABASE_TYPE = "MySQL" [static]

Database access configuration parameters.

const char *const *const TYPE_PARAMETER = "Type"
const char *const *const *const SERVER_PARAMETER = "Server"
const char *const *const *const *const HOST_PARAMETER = "Host"
const char *const *const *const *const *const USER_PARAMETER = "User"
const char *const *const *const *const *const *const PASSWORD_PARAMETER = "Password"
const char *const *const *const *const *const *const *const CATALOG_PARAMETER = "Catalog"
const char *const *const *const *const *const *const *const *const TABLE_PARAMETER = "Table"
const char *const OBSERVATION_ID_FIELD = "COMMANDED_ID" [static]

Database field names.

const int SUCCESS = 0 [static]

Exit status values.

Referenced by main().

const int BAD_SYNTAX = 1

Referenced by database_value(), and usage().

const int CONFIGURATION_FAILURE = 2
const int DATABASE_ERROR = 3

Referenced by database_value().

const int INVALID_ARGUMENT = 11
const int LENGTH_ERROR = 12
const int UNDERFLOW_ERROR = 13
const int OUT_OF_RANGE = 14
const int LOGIC_ERROR = 19
const int NO_INPUT_FILE = 20
const int NO_OUTPUT_FILE = 21
const int NO_PVL_FILE = 23

Referenced by main().

const int IO_FAILURE = 29
const int PVL_ERROR = 30

Referenced by main().

const int UNKNOWN_ERROR = -1
bool Backup
bool Force

Referenced by main().

bool Verbose

Referenced by database_value(), and main().

std::string Input_Pathname
std::ifstream* Input_File

Referenced by main().

PDS formatting of PVL.

std::string Observation_ID

The Observation ID value used to select a database record.

Referenced by main().


The documentation for this class was generated from the following files: