HiRISE
 Observation

Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
Data_Component.hh File Reference
#include "Instrument.hh"
#include "Data_Block.hh"
#include "PVL.hh"
#include <iostream>
#include <string>
#include <vector>
Include dependency graph for Data_Component.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Data_Component
 A Data_Component provides a common, virtual interface for all HiRISE Observation data blocks. More...
 

Namespaces

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

Macros

#define INT_8_TYPE   char
 
#define U_INT_8_TYPE   unsigned char
 
#define INT_16_TYPE   short int
 
#define U_INT_16_TYPE   unsigned short int
 
#define INT_32_TYPE   int
 
#define U_INT_32_TYPE   unsigned int
 
#define INT_64_TYPE   long int
 
#define U_INT_64_TYPE   unsigned long int
 

Typedefs

typedef INT_8_TYPE int_8
 8-bit integer type. More...
 
typedef U_INT_8_TYPE u_int_8
 8-bit unsigned integer type. More...
 
typedef INT_16_TYPE int_16
 16-bit integer type. More...
 
typedef U_INT_16_TYPE u_int_16
 16-bit unsigned integer type. More...
 
typedef INT_32_TYPE int_32
 32-bit integer type. More...
 
typedef U_INT_32_TYPE u_int_32
 32-bit unsigned integer type. More...
 
typedef INT_64_TYPE int_64
 64-bit integer type. More...
 
typedef U_INT_64_TYPE u_int_64
 64-bit unsigned integer type. More...
 
typedef PIRL::Data_Block::Index Index
 Data_Block element index type. More...
 
typedef u_int_16 Pixel_type
 The type of a generic pixel value. More...
 

Enumerations

enum  Parameter_Class_Selection {
  AGGREGATE_PARAMETER = -1 ,
  ANY_PARAMETER = 0 ,
  ASSIGNMENT_PARAMETER = 1
}
 Selects the class of parameter for PVL_parameter to find. More...
 
enum  Clock_Selector {
  HiRISE_Clock ,
  MRO_Clock
}
 Used to select a clock. More...
 

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...
 
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 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 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...
 
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...
 
string hostname ()
 Gets the name of the host system. 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...
 

Macro Definition Documentation

◆ INT_8_TYPE

#define INT_8_TYPE   char

◆ U_INT_8_TYPE

#define U_INT_8_TYPE   unsigned char

◆ INT_16_TYPE

#define INT_16_TYPE   short int

◆ U_INT_16_TYPE

#define U_INT_16_TYPE   unsigned short int

◆ INT_32_TYPE

#define INT_32_TYPE   int

◆ U_INT_32_TYPE

#define U_INT_32_TYPE   unsigned int

◆ INT_64_TYPE

#define INT_64_TYPE   long int

◆ U_INT_64_TYPE

#define U_INT_64_TYPE   unsigned long int