|
static std::string | escape (const std::string &) |
|
static std::string | unescape (const std::string &) |
|
|
enum | Token { TOKEN_TAG
, TOKEN_START_TAG
, TOKEN_END_TAG
, TOKEN_DATA
} |
|
enum | State {
PARSE_NOTHING
, PARSE_STREAM
, PARSE_MAP
, PARSE_LIST
,
PARSE_INT
, PARSE_FLOAT
, PARSE_STRING
, PARSE_NONE
} |
|
Definition at line 40 of file XML.h.
◆ State
enum Atlas::Codecs::XML::State |
|
protected |
◆ Token
enum Atlas::Codecs::XML::Token |
|
protected |
◆ XML()
Atlas::Codecs::XML::XML |
( |
std::istream & |
in, |
|
|
std::ostream & |
out, |
|
|
Atlas::Bridge & |
b |
|
) |
| |
◆ escape()
std::string Atlas::Codecs::XML::escape |
( |
const std::string & |
original | ) |
|
|
static |
Escapes a string for HTML.
- Parameters
-
- Returns
- An escaped string.
Definition at line 401 of file XML.cpp.
◆ listEnd()
void Atlas::Codecs::XML::listEnd |
( |
| ) |
|
|
overridevirtual |
◆ listFloatItem()
void Atlas::Codecs::XML::listFloatItem |
( |
double |
| ) |
|
|
overridevirtual |
◆ listIntItem()
void Atlas::Codecs::XML::listIntItem |
( |
std::int64_t |
| ) |
|
|
overridevirtual |
◆ listListItem()
void Atlas::Codecs::XML::listListItem |
( |
| ) |
|
|
overridevirtual |
Starts a list object in the currently streamed list.
Implements Atlas::Bridge.
Definition at line 377 of file XML.cpp.
◆ listMapItem()
void Atlas::Codecs::XML::listMapItem |
( |
| ) |
|
|
overridevirtual |
Starts a map object in the currently streamed list.
Implements Atlas::Bridge.
Definition at line 373 of file XML.cpp.
◆ listNoneItem()
void Atlas::Codecs::XML::listNoneItem |
( |
| ) |
|
|
overridevirtual |
Adds an empty item to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 393 of file XML.cpp.
◆ listStringItem()
void Atlas::Codecs::XML::listStringItem |
( |
std::string |
| ) |
|
|
overridevirtual |
◆ mapEnd()
void Atlas::Codecs::XML::mapEnd |
( |
| ) |
|
|
overridevirtual |
◆ mapFloatItem()
void Atlas::Codecs::XML::mapFloatItem |
( |
std::string |
name, |
|
|
double |
|
|
) |
| |
|
overridevirtual |
◆ mapIntItem()
void Atlas::Codecs::XML::mapIntItem |
( |
std::string |
name, |
|
|
std::int64_t |
|
|
) |
| |
|
overridevirtual |
◆ mapListItem()
void Atlas::Codecs::XML::mapListItem |
( |
std::string |
name | ) |
|
|
overridevirtual |
Starts a list object to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 349 of file XML.cpp.
◆ mapMapItem()
void Atlas::Codecs::XML::mapMapItem |
( |
std::string |
name | ) |
|
|
overridevirtual |
Starts a map object to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 345 of file XML.cpp.
◆ mapNoneItem()
void Atlas::Codecs::XML::mapNoneItem |
( |
std::string |
name | ) |
|
|
overridevirtual |
◆ mapStringItem()
void Atlas::Codecs::XML::mapStringItem |
( |
std::string |
name, |
|
|
std::string |
|
|
) |
| |
|
overridevirtual |
◆ parseEndTag()
void Atlas::Codecs::XML::parseEndTag |
( |
| ) |
|
|
inlineprotected |
◆ parseStartTag()
void Atlas::Codecs::XML::parseStartTag |
( |
| ) |
|
|
inlineprotected |
◆ poll()
void Atlas::Codecs::XML::poll |
( |
| ) |
|
|
overridevirtual |
◆ streamBegin()
void Atlas::Codecs::XML::streamBegin |
( |
| ) |
|
|
overridevirtual |
◆ streamEnd()
void Atlas::Codecs::XML::streamEnd |
( |
| ) |
|
|
overridevirtual |
◆ streamMessage()
void Atlas::Codecs::XML::streamMessage |
( |
| ) |
|
|
overridevirtual |
◆ tokenData()
void Atlas::Codecs::XML::tokenData |
( |
char |
next | ) |
|
|
inlineprotected |
◆ tokenEndTag()
void Atlas::Codecs::XML::tokenEndTag |
( |
char |
next | ) |
|
|
inlineprotected |
◆ tokenStartTag()
void Atlas::Codecs::XML::tokenStartTag |
( |
char |
next | ) |
|
|
inlineprotected |
◆ tokenTag()
void Atlas::Codecs::XML::tokenTag |
( |
char |
next | ) |
|
|
inlineprotected |
◆ unescape()
std::string Atlas::Codecs::XML::unescape |
( |
const std::string & |
original | ) |
|
|
static |
Un-escapes a previously "escaped" string for HTML.
- Parameters
-
- Returns
- An unescaped string.
Definition at line 429 of file XML.cpp.
◆ m_bridge
Bridge& Atlas::Codecs::XML::m_bridge |
|
protected |
Definition at line 99 of file XML.h.
◆ m_data
std::stack<std::string> Atlas::Codecs::XML::m_data |
|
protected |
◆ m_istream
std::istream& Atlas::Codecs::XML::m_istream |
|
protected |
Definition at line 97 of file XML.h.
◆ m_name
std::string Atlas::Codecs::XML::m_name |
|
protected |
◆ m_ostream
std::ostream& Atlas::Codecs::XML::m_ostream |
|
protected |
Definition at line 98 of file XML.h.
◆ m_state
std::stack<State> Atlas::Codecs::XML::m_state |
|
protected |
◆ m_tag
std::string Atlas::Codecs::XML::m_tag |
|
protected |
◆ m_token
Token Atlas::Codecs::XML::m_token |
|
protected |
The documentation for this class was generated from the following files: