HiRISE
 Observation

Namespaces | Macros | Functions
Data_Component.cc File Reference
#include "Data_Component.hh"
#include "Data_Block.hh"
#include "PVL.hh"
#include "SpiceUsr.h"
#include <iostream>
#include <sstream>
#include <iomanip>
#include <string>
#include <cstring>
#include <vector>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/param.h>
#include <algorithm>
#include <ctime>
#include <cmath>
#include <cstdlib>
#include <stdexcept>
Include dependency graph for Data_Component.cc:

Namespaces

 UA
 University of Arizona.
 
 UA::HiRISE
 High Resolution Imaging Science Experiment.
 

Macros

#define FILESYSTEM_PATHNAME_DELIMITER   '/'
 Host filesystem pathname delimiter. More...
 
#define SECONDS_PRECISION   3
 
#define SPICE_METAKERNEL_VARIABLE_NAME   "SPICE_METAKERNEL"
 
#define DEFAULT_SPICE_METAKERNEL_PATHNAME   "/HiRISE/Data/NAIF/kernel.list"
 
#define MRO_CLOCK_NAIF_ID   -74999
 
#define DEFAULT_INVALID_UTC_TIME   "0000-00-00T00:00:00.000"
 

Functions

std::ostream & operator<< (std::ostream &stream, const Data_Component &component)
 Prints a Data_Component to a stream. More...
 
std::ostream & print_value (u_int_32 value, int format=Data_Component::DECIMAL, std::ostream &stream=std::cout, int width=0)
 Prints a value in a consistent Data_Component format. More...
 
string bits (const unsigned int value, unsigned int count=0)
 Gets the string representation of a value in binary. More...
 
unsigned int max_strlen (const char **strings)
 Finds the length of the longest string in the list. More...
 
std::string to_upper (const std::string &characters)
 Converts all characters of a string to uppercase. More...
 
ParameterPVL_parameter (idaeim::PVL::Aggregate &aggregate, std::string pathname, bool case_sensitive=false, int skip=0, Parameter_Class_Selection parameter_class=ANY_PARAMETER)
 Gets a named PVL Parameter in an aggregate. More...
 
std::vector< std::string > PVL_values (idaeim::PVL::Aggregate &aggregate, std::string pathname, bool case_sensitive=false, int skip=0)
 Gets the values of a named PVL Parameter in an aggregate. More...
 
bool PVL_value (idaeim::PVL::Aggregate &aggregate, std::string pathname, unsigned int value, bool case_sensitive=false, int skip=0)
 Sets the value of a named PVL parameter in an aggregate. More...
 
bool PVL_value (idaeim::PVL::Aggregate &aggregate, std::string pathname, int value, bool case_sensitive, int skip)
 
bool PVL_value (idaeim::PVL::Aggregate &aggregate, std::string pathname, const std::string &value, bool case_sensitive=false, int skip=0)
 Sets the value of a named PVL parameter in an aggregate. More...
 
string UTC_time (double seconds, unsigned int epoch=Instrument::SPACECRAFT_EPOCH)
 Converts time in seconds to UTC representation. More...
 
string clock_count (double seconds, Clock_Selector clock=HiRISE_Clock)
 Converts time in seconds to clock count representation. More...
 
double seconds (const std::string &clock_count, Clock_Selector clock=HiRISE_Clock)
 Converts a clock count representation to time in seconds. More...
 
bool member_of (const unsigned int value, const unsigned int *array, int size)
 Tests if a value is a member of an array. More...
 
bool member_of (const char *const value, const char *const array[], int size)
 Test if a value is a member of an array. More...
 
string hostname ()
 Gets the name of the host system. More...
 
bool file_exists (const std::string &filename)
 Tests if a file exists. More...
 
string pathname (const std::string &filename="")
 Gets a fully qualified pathname for a filename. More...
 
string pathname (const std::string &directory, const std::string &filename, const std::string &extension)
 Assembles a pathname from directory, filename, and extension segments. More...
 
string filename (const std::string &pathname)
 Gets the filename portion of a pathname. More...
 
string shift (std::string lines, int amount)
 Shifts (indents) lines of text by the specified number of spaces. More...
 
string plural (int count)
 Gets a pluralization string. More...
 

Macro Definition Documentation

◆ FILESYSTEM_PATHNAME_DELIMITER

#define FILESYSTEM_PATHNAME_DELIMITER   '/'

Host filesystem pathname delimiter.

◆ SECONDS_PRECISION

#define SECONDS_PRECISION   3

◆ SPICE_METAKERNEL_VARIABLE_NAME

#define SPICE_METAKERNEL_VARIABLE_NAME   "SPICE_METAKERNEL"

◆ DEFAULT_SPICE_METAKERNEL_PATHNAME

#define DEFAULT_SPICE_METAKERNEL_PATHNAME   "/HiRISE/Data/NAIF/kernel.list"

◆ MRO_CLOCK_NAIF_ID

#define MRO_CLOCK_NAIF_ID   -74999

◆ DEFAULT_INVALID_UTC_TIME

#define DEFAULT_INVALID_UTC_TIME   "0000-00-00T00:00:00.000"