37 #define G_REMOVE "GCOMHkd::remove(int&)"
38 #define G_EXTEND "GCOMHkd::extend(GCOMHkd&)"
39 #define G_TIME_GET "GCOMHkd::time(int&)"
40 #define G_VALUE_GET "GCOMHkd::value(int&)"
41 #define G_TIME_SET "GCOMHkd::time(int&, GTime&)"
42 #define G_VALUE_SET "GCOMHkd::value(int&, double&)"
215 #if defined(G_RANGE_CHECK)
217 if (index < 0 || index >=
size()) {
250 std::string msg =
"Housekeeping parameter name \""+hkd.
name()+
"\" "
251 "does not correspond to expected name \""+
252 name()+
"\". Please specify a container with "
253 "the expected parameter name.";
258 int num = hkd.
size();
265 for (; index <
size(); ++index) {
272 if (index <
size()) {
273 for (
int i = 0; i < num; ++i) {
279 for (
int i = 0; i < num; ++i) {
307 if (index < 0 || index >=
size()) {
308 std::string msg =
"Housekeeping Data index";
331 if (index < 0 || index >=
size()) {
332 std::string msg =
"Housekeeping Data index";
359 if (index < 0 || index >=
size()) {
360 std::string msg =
"Housekeeping Data index";
383 if (index < 0 || index >=
size()) {
384 std::string msg =
"Housekeeping Data index";
412 result.append(
"=== GCOMHkd ===");
437 result.append(tstart.
utc()+
" - ");
438 result.append(tstop.
utc());
void init_members(void)
Initialise class members.
const double & value(const int &index) const
Return reference to Housekeeping Data value.
GCOMHkd & operator=(const GCOMHkd &hkd)
Assignment operator.
std::vector< double > m_values
Values at times.
GCOMHkd * clone(void) const
Clone Housekeeping Data container.
virtual ~GCOMHkd(void)
Destructor.
GCOMHkd(void)
Void constructor.
void clear(void)
Clear Housekeeping Data container.
bool is_empty(void) const
Signals if there are no Housekeeping Data in container.
int com_tjd(const GTime &time)
Convert GTime in COMPTEL TJD.
COMPTEL Housekeeping Data container class definition.
void clear(void)
Clear container.
int size(void) const
Return number of Housekeeping Data in container.
const GTime & time(const int &index) const
Return reference to Housekeeping Data time.
void reserve(const int &num)
Reserves space for Housekeeping Data in container.
COMPTEL Housekeeping Data container class.
std::string print(const GChatter &chatter=NORMAL) const
Print Housekeeping Data container.
int com_tics(const GTime &time)
Convert GTime in COMPTEL tics.
void remove(const int &index)
Remove Housekeeping Data.
void copy_members(const GCOMHkd &hkd)
Copy class members.
const std::string & name(void) const
Return Housekeeping Data name.
Exception handler interface definition.
void remove(const int &index)
Remove time from container.
double mjd(void) const
Return time in Modified Julian Days (TT)
std::string m_name
Name of housekeeping parameter.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
void insert(const int &index, const GTime &time)
Insert time into container.
void append(const GTime &time, const double &value)
Append Housekeeping Data to container.
std::string utc(const int &precision=0) const
Return time as string in UTC time system.
void append(const GTime &time)
Append time to container.
void extend(const GCOMHkd &hkd)
Extend Housekeeping Data.
void free_members(void)
Delete class members.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.