|
| | CXMLEmitter (isys::ICStreamSPtr fileStream) |
| | Creates emitter to write data to the given stream.
|
| | CXMLEmitter (std::ostream &ostr) |
| void | endDocument (bool implicit) override |
| | see IEmitter.h
|
| void | endNode (const std::string &nodeName) |
| | This method is specific to XML.
|
| void | endStream () override |
| | see IEmitter.h
|
| virtual std::string | escapeSpecialChars (const std::string &data) override |
| | Escapes predefined entities in XML.
|
| void | flush () override |
| virtual std::string | getIndent () |
| | Returns indentation string added to each line of output.
|
| virtual int | getLineNumber () |
| | This method provides information about current line being written to the file.
|
| virtual void | getRow (iconnect::StrVector &row, int rowIndex) |
| | This method returns row for the given index.
|
| void | mapEnd () override |
| void | mapStart (IEmitter::EYamlStyle style=IEmitter::EYAML_ANY_STYLE, bool isAllowArbitraryKeyString=false) override |
| void | sequenceEnd () override |
| void | sequenceStart (IEmitter::EYamlStyle style=IEmitter::EYAML_ANY_STYLE) override |
| virtual void | setIndent (const std::string &indent) |
| | Sets indentation string added to each line of output.
|
| virtual void | setLineNumber (int lineNumber) |
| | Can be used to set current line number in cases, where emitter does not start at the beginning of the stream, or to disable line counting by setting 'lineNumber' to LINE_NUM_NOT_SET.
|
| void | startDocument (bool implicit) override |
| | see IEmitter.h
|
| void | startNode (const std::string &nodeName) |
| | This method is specific to XML.
|
| void | startNode (const std::string &nodeName, const std::map< std::string, std::string > attributes) |
| void | startStream () override |
| | see IEmitter.h
|
| void | startStream (const std::string &userData) override |
| | Use this method to add your specific data immediately after the first line.
|
| virtual void | writeMapEnd () |
| void | writeMappingPair (const CYAMLObject &mappingKey, const CYAMLObject &yamlObject) override |
| void | writeMappingPair (const std::string &mappingKey, bool value) override |
| void | writeMappingPair (const std::string &mappingKey, const CYAMLObject &yamlObject) override |
| void | writeMappingPair (const std::string &mappingKey, const std::string &value) override |
| void | writeMappingPair (const std::string &mappingKey, double value) override |
| void | writeMappingPair (const std::string &mappingKey, int64_t value) override |
| void | writeMappingPair (const std::string &mappingKey, uint64_t value) override |
| virtual void | writeSequenceEnd () |
| void | writeString (const std::string &data) override |
| void | writeText (const std::string &text) override |
| virtual | ~CXMLEmitter ()=default |
This class serializes test specification objects to XML format.
- See also
- isys::IEmitter
| virtual void isys::IEmitter::setLineNumber |
( |
int | lineNumber | ) |
|
|
virtualinherited |
Can be used to set current line number in cases, where emitter does not start at the beginning of the stream, or to disable line counting by setting 'lineNumber' to LINE_NUM_NOT_SET.
This is also the default value, so to enable line counting, call this method with value >= 0.
- Since
- 9.12.288
| void isys::CXMLEmitter::startStream |
( |
const std::string & | userData | ) |
|
|
overridevirtual |
Use this method to add your specific data immediately after the first line.
It is mainly intended for processing instructions, for example XSLT processing:
startStream("'<?xml-stylesheet type="text/xsl" href="itestResult.xslt"?>\\n")
- Since
- 9.12.288
Implements isys::IEmitter.