COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Classes | |
class | StringParser |
Functions | |
vector< string > | string_split (string in, string delimeters) |
Parse a string. More... | |
uint16_t | string_parse (char *string, char *words[], uint16_t wmax) |
Parse a string into words. More... | |
int | string_cmp (const char *wild, const char *string) |
string | to_hex_string (vector< uint8_t > buffer, bool ascii) |
string | to_string (char *value) |
string | to_hex (int64_t value, uint16_t digits, bool zerofill) |
string | to_signed (int64_t value, uint16_t digits, bool zerofill) |
string | to_unsigned (uint64_t value, uint16_t digits, bool zerofill) |
string | to_double (double value, uint16_t precision) |
string | to_mjd (double value) |
string | to_temperature (double value, char units, uint8_t precision) |
string | to_angle (double value, char units, uint8_t precision) |
string | to_bool (bool value) |
string | to_json (string key, string value) |
string | to_json (string key, double value) |
string | to_json (string key, int64_t value) |
string | to_json (string key, int32_t value) |
string | to_json (string key, int16_t value) |
string | to_json (string key, int8_t value) |
string | to_json (string key, uint64_t value) |
string | to_json (string key, uint32_t value) |
string | to_json (string key, uint16_t value) |
string | to_json (string key, uint8_t value) |
string | to_label (string label, double value, uint16_t precision, bool mjd) |
string | to_label (string label, uint64_t value, uint16_t digits, bool hex) |
string | to_label (string label, uint32_t value, uint16_t digits, bool hex) |
string | to_label (string label, uint16_t value, uint16_t digits, bool hex) |
string | to_label (string label, uint8_t value, uint16_t digits, bool hex) |
string | to_label (string label, int64_t value, uint16_t digits, bool hex) |
string | to_label (string label, int32_t value, uint16_t digits, bool hex) |
string | to_label (string label, int16_t value, uint16_t digits, bool hex) |
string | to_label (string label, int8_t value, uint16_t digits, bool hex) |
string | to_label (string label, bool value) |
string | to_label (string label, string value) |
string | clean_string (string value) |
StringParser::StringParser (string str) | |
StringParser::StringParser (string str, char delimiter) | |
void | StringParser::splitString (string str, char delimiter) |
string | StringParser::getFieldNumber (uint32_t index) |
double | StringParser::getFieldNumberAsDouble (uint32_t index) |
int | StringParser::getFieldNumberAsInteger (uint32_t index) |
vector< string > string_split | ( | string | in, |
string | delimeters | ||
) |
Parse a string.
Divide a string into substrings based on a delimeter and return a vector of the results.
in | Zero terminated character string. |
delimeter | string of delimeters. |
uint16_t string_parse | ( | char * | string, |
char * | words[], | ||
uint16_t | wmax | ||
) |
Parse a string into words.
Divide a string into words separated by white space and return an array of the results.
string | Zero terminated character string. |
words | Empty array for storage of substrings. |
wmax | maximum number of words that can be stored in words array. |
string to_hex_string | ( | vector< uint8_t > | buffer, |
bool | ascii | ||
) |
string to_string | ( | char * | value | ) |
string to_hex | ( | int64_t | value, |
uint16_t | digits, | ||
bool | zerofill | ||
) |
string to_signed | ( | int64_t | value, |
uint16_t | digits, | ||
bool | zerofill | ||
) |
string to_unsigned | ( | uint64_t | value, |
uint16_t | digits, | ||
bool | zerofill | ||
) |
string to_double | ( | double | value, |
uint16_t | precision | ||
) |
string to_mjd | ( | double | value | ) |
string to_temperature | ( | double | value, |
char | units, | ||
uint8_t | precision | ||
) |
string to_angle | ( | double | value, |
char | units, | ||
uint8_t | precision | ||
) |
string to_bool | ( | bool | value | ) |
string to_json | ( | string | key, |
string | value | ||
) |
string to_json | ( | string | key, |
double | value | ||
) |
string to_json | ( | string | key, |
int64_t | value | ||
) |
string to_json | ( | string | key, |
int32_t | value | ||
) |
string to_json | ( | string | key, |
int16_t | value | ||
) |
string to_json | ( | string | key, |
int8_t | value | ||
) |
string to_json | ( | string | key, |
uint64_t | value | ||
) |
string to_json | ( | string | key, |
uint32_t | value | ||
) |
string to_json | ( | string | key, |
uint16_t | value | ||
) |
string to_json | ( | string | key, |
uint8_t | value | ||
) |
string to_label | ( | string | label, |
double | value, | ||
uint16_t | precision, | ||
bool | mjd | ||
) |
string to_label | ( | string | label, |
uint64_t | value, | ||
uint16_t | digits, | ||
bool | hex | ||
) |
string to_label | ( | string | label, |
uint32_t | value, | ||
uint16_t | digits, | ||
bool | hex | ||
) |
string to_label | ( | string | label, |
uint16_t | value, | ||
uint16_t | digits, | ||
bool | hex | ||
) |
string to_label | ( | string | label, |
uint8_t | value, | ||
uint16_t | digits, | ||
bool | hex | ||
) |
string to_label | ( | string | label, |
int64_t | value, | ||
uint16_t | digits, | ||
bool | hex | ||
) |
string to_label | ( | string | label, |
int32_t | value, | ||
uint16_t | digits, | ||
bool | hex | ||
) |
string to_label | ( | string | label, |
int16_t | value, | ||
uint16_t | digits, | ||
bool | hex | ||
) |
string to_label | ( | string | label, |
int8_t | value, | ||
uint16_t | digits, | ||
bool | hex | ||
) |
string to_label | ( | string | label, |
bool | value | ||
) |
string clean_string | ( | string | value | ) |
StringParser::StringParser | ( | string | str | ) |
StringParser::StringParser | ( | string | str, |
char | delimiter | ||
) |
void StringParser::splitString | ( | string | str, |
char | delimiter | ||
) |
string StringParser::getFieldNumber | ( | uint32_t | index | ) |
double StringParser::getFieldNumberAsDouble | ( | uint32_t | index | ) |
int StringParser::getFieldNumberAsInteger | ( | uint32_t | index | ) |