HiRISE
 Observation

Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Label_Patcher Class Reference

#include <Label_Patcher.hh>

Collaboration diagram for Label_Patcher:
Collaboration graph
[legend]

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

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. More...
 
idaeim::PVL::ParameterLabel_Size_Parameter
 
std::string Observation_ID
 The Observation ID value used to select a database record. More...
 
struct UA::HiRISE::Label_Patcher::Database_Configuration Database_Configuration_Values
 

Static Public Attributes

static const char *const ID
 Class identification name with source code version and date. More...
 
static const char *const PDS_VERSION_ID_PARAMETER = "PDS_VERSION_ID"
 Names of parameters to be accessed. More...
 
static const char *const *const OBSERVATION_ID_PARAMETER = "OBSERVATION_ID"
 
static const char *const LABEL_RECORDS_PARAMETER = "LABEL_RECORDS"
 Names of parameters that will have values changed if label size changes. More...
 
static const char *const DATA_LOCATION_PREFIX = '^'
 
static const char *const LOOKUP_CONVERSION_TABLE = "MRO:LOOKUP_CONVERSION_TABLE"
 Names of parameters requiring ad hoc formatting adjustment. More...
 
static const char *const DATABASE_TYPE = "MySQL"
 Database access configuration parameters. More...
 
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 char *const OBSERVATION_ID_FIELD = "COMMANDED_ID"
 Database field names. More...
 
static const int SUCCESS = 0
 Exit status values. More...
 
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
 

Constructor & Destructor Documentation

◆ Label_Patcher()

Label_Patcher ( int  count,
char **  arguments 
)

Member Function Documentation

◆ label_parameter()

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

◆ configure_database()

void configure_database ( )

◆ connect_to_database()

void connect_to_database ( )

◆ database_field_value()

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

◆ database_configuration_report()

string database_configuration_report ( )

◆ database_connection_report()

string database_connection_report ( )

Referenced by main().

◆ disconnect_from_database()

void disconnect_from_database ( )

Referenced by main().

◆ apply_patch()

int apply_patch ( )

Member Data Documentation

◆ ID

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

Class identification name with source code version and date.

Referenced by Label_Patcher::Label_Patcher().

◆ PDS_VERSION_ID_PARAMETER

const char *const PDS_VERSION_ID_PARAMETER = "PDS_VERSION_ID"
static

Names of parameters to be accessed.

Referenced by Label_Patcher::Label_Patcher().

◆ OBSERVATION_ID_PARAMETER

const char *const *const OBSERVATION_ID_PARAMETER = "OBSERVATION_ID"
static

◆ LABEL_RECORDS_PARAMETER

const char *const LABEL_RECORDS_PARAMETER = "LABEL_RECORDS"
static

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

Referenced by Label_Patcher::Label_Patcher(), and usage().

◆ DATA_LOCATION_PREFIX

const char *const DATA_LOCATION_PREFIX = '^'
static

◆ LOOKUP_CONVERSION_TABLE

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

Names of parameters requiring ad hoc formatting adjustment.

Referenced by Label_Patcher::apply_patch().

◆ DATABASE_TYPE

const char *const DATABASE_TYPE = "MySQL"
static

Database access configuration parameters.

Referenced by Label_Patcher::configure_database().

◆ TYPE_PARAMETER

const char *const *const TYPE_PARAMETER = "Type"
static

◆ SERVER_PARAMETER

const char *const *const *const SERVER_PARAMETER = "Server"
static

◆ HOST_PARAMETER

const char *const *const *const *const HOST_PARAMETER = "Host"
static

◆ USER_PARAMETER

const char *const *const *const *const *const USER_PARAMETER = "User"
static

◆ PASSWORD_PARAMETER

const char *const *const *const *const *const *const PASSWORD_PARAMETER = "Password"
static

◆ CATALOG_PARAMETER

const char *const *const *const *const *const *const *const CATALOG_PARAMETER = "Catalog"
static

◆ TABLE_PARAMETER

const char *const *const *const *const *const *const *const *const TABLE_PARAMETER = "Table"
static

◆ OBSERVATION_ID_FIELD

const char *const OBSERVATION_ID_FIELD = "COMMANDED_ID"
static

Database field names.

◆ SUCCESS

const int SUCCESS = 0
static

Exit status values.

Referenced by Label_Patcher::apply_patch(), and Label_Patcher::Label_Patcher().

◆ BAD_SYNTAX

const int BAD_SYNTAX = 1
static

Referenced by usage().

◆ CONFIGURATION_FAILURE

const int CONFIGURATION_FAILURE = 2
static

◆ DATABASE_ERROR

const int DATABASE_ERROR = 3
static

◆ INVALID_ARGUMENT

const int INVALID_ARGUMENT = 11
static

◆ LENGTH_ERROR

const int LENGTH_ERROR = 12
static

◆ UNDERFLOW_ERROR

const int UNDERFLOW_ERROR = 13
static

◆ OUT_OF_RANGE

const int OUT_OF_RANGE = 14
static

◆ LOGIC_ERROR

const int LOGIC_ERROR = 19
static

◆ NO_INPUT_FILE

const int NO_INPUT_FILE = 20
static

◆ NO_OUTPUT_FILE

const int NO_OUTPUT_FILE = 21
static

◆ NO_PVL_FILE

const int NO_PVL_FILE = 23
static

◆ IO_FAILURE

const int IO_FAILURE = 29
static

◆ PVL_ERROR

const int PVL_ERROR = 30
static

◆ UNKNOWN_ERROR

const int UNKNOWN_ERROR = -1
static

◆ Backup

bool Backup

◆ Force

bool Force

◆ Verbose

bool Verbose

◆ Input_Pathname

std::string Input_Pathname

◆ Input_File

std::ifstream* Input_File

◆ PDS_Label

◆ PDS_Label_Lister

idaeim::PVL::Lister PDS_Label_Lister

PDS formatting of PVL.

Referenced by Label_Patcher::apply_patch(), and Label_Patcher::Label_Patcher().

◆ Label_Size_Parameter

idaeim::PVL::Parameter* Label_Size_Parameter

◆ Observation_ID

std::string Observation_ID

The Observation ID value used to select a database record.

Referenced by main().

◆ Database_Configuration_Values

struct UA::HiRISE::Label_Patcher::Database_Configuration Database_Configuration_Values

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