OSFI-C++
3.10.0
OpenSF Integration Library
|
Classes | |
struct | TimeValue |
struct | parsed_type |
struct | parsed_type< ElementType::INTEGER > |
struct | parsed_type< ElementType::FLOAT > |
struct | parsed_type< ElementType::BOOLEAN > |
struct | parsed_type< ElementType::STRING > |
struct | parsed_type< ElementType::FILE > |
struct | parsed_type< ElementType::FOLDER > |
struct | parsed_type< ElementType::TIME > |
Typedefs | |
template<ElementType et> | |
using | parsed_type_t = typename parsed_type< et >::type |
Enumerations | |
enum class | ElementType { INTEGER = 1 , FLOAT , BOOLEAN , STRING , FILE , FOLDER , TIME } |
Functions | |
std::string | to_string (ElementType et) |
ElementType | as_ElementType (const std::string &str) |
std::string | to_string (const TimeValue &) |
std::ostream & | operator<< (std::ostream &, const TimeValue &) |
bool | operator== (const TimeValue &, const TimeValue &) |
bool | operator< (const TimeValue &, const TimeValue &) |
bool | operator!= (const TimeValue &a, const TimeValue &b) |
bool | operator<= (const TimeValue &a, const TimeValue &b) |
bool | operator>= (const TimeValue &a, const TimeValue &b) |
bool | operator> (const TimeValue &a, const TimeValue &b) |
Package bundling classes and routines related to the Configuration File Manager module of OSFI.
using osfi::confm::parsed_type_t = typedef typename parsed_type<et>::type |
Alias to use instead of parsed_type<et>::type
.
|
strong |
Parameter types described in the E2E-ICD Issue 1 Rev 4.2 section 2.2.6.2. Note that only element types are included; ARRAY and MATRIX types are detected and their element type is parsed.
Enumerator | |
---|---|
INTEGER | Integral number, with the value range of std::int32_t. |
FLOAT | Floating point number, in decimal representation with the range of IEEE754 binary64. |
BOOLEAN | Truth value. Per the E2E-ICD, only |
STRING | A string composed of alphanumeric, punctuation or whitespace characters (but excluding control characters e.g.
|
FILE | Path to a file. If relative, it is resolved against the configured base directory, which, following the E2E-ICD, is read from the enviroment variable "E2E_HOME". |
FOLDER | Path to a folder, with the same rules as FILE. |
TIME | Timecode formatted as CCSDS ASCII time format with milli- or micro-second precision.
|
ElementType osfi::confm::as_ElementType | ( | const std::string & | str | ) |
Conversion from a string to an ElementType value.
std::invalid_argument | if the string is not recognized as an element type name. |
Less-than operator. Use std::rel_ops to get the rest. Values are compared field by field from most to least significant. No adaptations are performed, so month=3 and dom=31 is less-than month=4 and dom=0.
std::ostream& osfi::confm::operator<< | ( | std::ostream & | , |
const TimeValue & | |||
) |
Insertion operator, formats output according to CCSDS ASCII time code A.
Equality comparison operator. Use std::rel_ops to get operator!=. Two instances are equal if all their field values are exactly equal. No conversions or adaptations are performed so month=4 and dom=0 is different from month=3 and dom=31.
std::string osfi::confm::to_string | ( | const TimeValue & | ) |
String conversion, uses the insertion operator to a string stream.
std::string osfi::confm::to_string | ( | ElementType | et | ) |
Conversion from an ElementType to a string.
std::invalid_argument | if the enum value is not recognized. |