|
HPCToolkit
|
Classes | |
| class | RWError |
Enumerations | |
| enum | XMLElementI { TOKEN = 0, ATT1 = 1, ATT2 = 2, ATT3 = 3, ATT4 = 4, ATT5 = 5, ATT6 = 6, ATT7 = 7, ATT8 = 8, ATT9 = 9 } |
| enum | { ESC_FALSE = (0 << 0), ESC_TRUE = (1 << 0), UNESC_FALSE = (0 << 0), UNESC_TRUE = (1 << 0) } |
Functions | |
| static string | substitute (const char *str, const string *fromStrs, const string *toStrs) |
| std::string | EscapeStr (const char *str) |
| std::string | EscapeStr (const std::string &str) |
| std::string | UnEscapeStr (const char *str) |
| std::string | UnEscapeStr (const std::string &str) |
| bool | ReadAttrStr (std::istream &is, std::string &s, int flags=UNESC_TRUE) |
| template<class T > | |
| bool | ReadAttrNum (std::istream &is, T &n) |
| bool | WriteAttrStr (std::ostream &os, const char *s, int flags=ESC_TRUE) |
| bool | WriteAttrStr (std::ostream &os, const std::string &s, int flags=ESC_TRUE) |
| template<class T > | |
| bool | WriteAttrNum (std::ostream &os, T n) |
| std::string | MakeAttrStr (const char *x, int flags=ESC_TRUE) |
| std::string | MakeAttrStr (const std::string &x, int flags=ESC_TRUE) |
| std::string | MakeAttrNum (int x) |
| std::string | MakeAttrNum (unsigned int x, int base=10) |
| std::string | MakeAttrNum (int64_t x) |
| std::string | MakeAttrNum (uint64_t x, int base=10) |
| std::string | MakeAttrNum (double x, const char *format="%g") |
Variables | |
| static const int | numSubs = 4 |
| static const string | RegStrs [] = {"<", ">", "&", "\""} |
| static const string | EscStrs [] = {"<", ">", "&", """} |
| const std::string | SPC = " " |
| const std::string | eleB = "<" |
| const std::string | eleBf = "</" |
| const std::string | eleE = ">" |
| const std::string | eleEc = "/>" |
| const std::string | attB = "=\"" |
| const std::string | attE = "\"" |
| anonymous enum |
| enum xml::XMLElementI |
| string xml::EscapeStr | ( | const char * | str | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool xml::ReadAttrNum | ( | std::istream & | is, |
| T & | n | ||
| ) |
| bool xml::ReadAttrStr | ( | std::istream & | is, |
| std::string & | s, | ||
| int | flags = UNESC_TRUE |
||
| ) |

|
static |
| string xml::UnEscapeStr | ( | const char * | str | ) |
|
inline |
| bool xml::WriteAttrNum | ( | std::ostream & | os, |
| T | n | ||
| ) |
| bool xml::WriteAttrStr | ( | std::ostream & | os, |
| const char * | s, | ||
| int | flags = ESC_TRUE |
||
| ) |
|
inline |
|
static |