ifw
0.0.1-dev
|
Classes | |
class | List |
@ brief STL like list that can be indexed with []'s. More... | |
Typedefs | |
using | IsoTime = std::string |
ISO8601 data type. More... | |
Functions | |
const std::map< DataType, std::string > & | DataTypesNbMap () |
Return reference to data types numeric to string map. More... | |
const std::map< std::string, DataType > & | DataTypesNameMap () |
Return reference to data types numeric to string map. More... | |
DataType | IfwDataTypeToNumeric (const std::string &data_type) |
Data type IFW string representation to IFW numeric representation. More... | |
std::string | IfwDataTypeToString (const DataType data_type) |
Data type IFW numeric representation to IFW string representation. More... | |
const std::map< DataType, std::string > & | DataType2TypeIdMap () |
Return reference to data types numeric to string map. More... | |
const std::map< std::string, DataType > & | TypeId2DataTypeMap () |
Return reference to data types numeric to string map. More... | |
template<class TYPE > | |
bool | SupportedType (const TYPE &variable) |
Check if the variable has a data type which is supported by the ELT ICS. More... | |
template<class TYPE > | |
void | CleanList (const List< TYPE > &list, const TYPE &pattern, List< TYPE > &clean_list) |
Remove elements from list, which are equal to "pattern". More... | |
template<class TYPE > | |
void | CheckRange (const std::string &par, TYPE value, TYPE lower_limit, TYPE upper_limit) |
Check if a value is within a given range. More... | |
template<class TYPE > | |
void | CheckRange (const std::string &par, const TYPE &value, List< TYPE > &valid_values) |
Check if a value is defined in a set. More... | |
template<class TYPE > | |
int32_t | ElInList (const List< TYPE > &list, const TYPE &value) |
Check for specific element in the list. More... | |
template<class TYPE > | |
std::string | DumpList (const List< TYPE > &list, const std::string &separator="\n") |
Dump contents of a list into a string buffer. More... | |
template<class MAP_TYPE > | |
bool | ElInMap (const std::string &key, const MAP_TYPE &map) |
Check if a given key is contained in an STL map. More... | |
Variables | |
const std::string | DATA_TYPE_BOOLEAN_STR = "Boolean" |
const std::string | DATA_TYPE_INT8_STR = "Int8" |
const std::string | DATA_TYPE_UINT8_STR = "UInt8" |
const std::string | DATA_TYPE_INT16_STR = "Int16" |
const std::string | DATA_TYPE_UINT16_STR = "UInt16" |
const std::string | DATA_TYPE_INT32_STR = "Int32" |
const std::string | DATA_TYPE_UINT32_STR = "UInt32" |
const std::string | DATA_TYPE_INT64_STR = "Int64" |
const std::string | DATA_TYPE_UINT64_STR = "UInt64" |
const std::string | DATA_TYPE_FLOAT_STR = "Float" |
const std::string | DATA_TYPE_DOUBLE_STR = "Double" |
const std::string | DATA_TYPE_STRING_STR = "String" |
const std::string | DATA_TYPE_NON_BASIC_STR = "NonBasic" |
const std::string | DATA_TYPE_TIME_DATE_STR = "TimeDate" |
const std::string | DATA_TYPE_TIMESTAMP_STR = "TimeStamp" |
const std::string | DATA_TYPE_BLOB_STR = "Blob" |
const std::string | DATA_TYPE_UNKNOWN_STR = "Unknown" |
const std::string | EXT_FITS = "fits" |
const std::string | EXT_YAML = "yaml" |
const std::string | EXT_XML = "xml" |
const std::string | EXT_CONFIG = "config" |
const std::string | TRUE_STR = "True" |
const std::string | FALSE_STR = "False" |
const int64_t | NO_TIMEOUT = -1 |
const std::string | NO_TIMEOUT_STR = "NoTimeout" |
const int64_t | ERROR = -1 |
const std::string | ERROR_STR = "Error" |
const int64_t | ILLEGAL = -3 |
const std::string | ILLEGAL_STR = "Illegal" |
const int64_t | INVALID = -4 |
const std::string | INVALID_STR = "__INVALID__" |
const int64_t | NOT_IMPLEMENTED = -5 |
const std::string | NOT_IMPLEMENTED_STR = "NotImplemented" |
const int64_t | UNDEFINED = -6 |
const std::string | UNDEFINED_STR = "__UNDEFINED__" |
const int64_t | UNKNOWN = -7 |
const std::string | UNKNOWN_STR = "Unknown" |
const int64_t | FAILURE = -8 |
const std::string | FAILURE_STR = "Failure" |
const int64_t | SUCCESS = 0 |
const std::string | SUCCESS_STR = "Success" |
const std::string | INDEFINITE_STR = "Indefinite" |
const std::string | ALL_STR = "All" |
const std::string | NONE_STR = "None" |
const std::string | COMPLETED_STR = "Completed" |
const std::string | PROCESSING_STR = "Processing" |
const std::string | BUSY_STR = "Busy" |
const std::string | ACTIVE_STR = "Active" |
const std::string | MOVING_STR = "Moving" |
const std::string | WARMING_UP_STR = "WarmingUp" |
const std::string | COOLING_DOWN_STR = "CoolingDown" |
const std::string | INITIALIZING_STR = "Initializing" |
const std::string | OFFSETTING_STR = "Offsetting" |
const std::string | CALIBRATING_STR = "Calibrating" |
const std::string | ADJUSTING_STR = "Adjusting" |
const std::string | RECEIVING_STR = "Receiving" |
const std::string | TRANSFERRING_STR = "Transferring" |
const std::string | STORING_STR = "Storing" |
const std::string | READING_STR = "Reading" |
const std::string | LOADING_STR = "Loading" |
const std::string | PARSING_STR = "Parsing" |
const std::string | ACQUIRING_STR = "Acquiring" |
const std::string | INSTALLING_STR = "Installing" |
const std::string | ON_STR = "On" |
const std::string | OFF_STR = "Off" |
const std::string | OK_STR = "OK" |
const std::string | NOT_OK_STR = "NOK" |
typedef std::string ctd::defines::IsoTime |
ISO8601 data type.
Data types numeric representations.
Data types numeric representations.
Data types numeric representations.
void ctd::defines::CheckRange | ( | const std::string & | par, |
TYPE | value, | ||
TYPE | lower_limit, | ||
TYPE | upper_limit | ||
) |
void ctd::defines::CleanList | ( | const List< TYPE > & | list, |
const TYPE & | pattern, | ||
List< TYPE > & | clean_list | ||
) |
Remove elements from list, which are equal to "pattern".
Return reference to data types numeric to string map.
Return reference to data types numeric to string map.
Return reference to data types numeric to string map.
std::string ctd::defines::DumpList | ( | const List< TYPE > & | list, |
const std::string & | separator = "\n" |
||
) |
Dump contents of a list into a string buffer.
int32_t ctd::defines::ElInList | ( | const List< TYPE > & | list, |
const TYPE & | value | ||
) |
Check for specific element in the list.
bool ctd::defines::ElInMap | ( | const std::string & | key, |
const MAP_TYPE & | map | ||
) |
Check if a given key is contained in an STL map.
Data type IFW string representation to IFW numeric representation.
std::string ctd::defines::IfwDataTypeToString | ( | const DataType | data_type | ) |
Data type IFW numeric representation to IFW string representation.
bool ctd::defines::SupportedType | ( | const TYPE & | variable | ) |
Check if the variable has a data type which is supported by the ELT ICS.