|
Go to the documentation of this file.
24 #ifndef FAUDES_TOKENWRITER_H
25 #define FAUDES_TOKENWRITER_H
83 std::ios::openmode openmode = std::ios::out|std::ios::trunc);
95 TokenWriter( const std::string& rFilename, const std::string& doctype);
107 TokenWriter(std::ostream& rStream, const std::string& doctype= "");
119 std::string FileName( void) const;
133 bool FileMode( void) const { return mMode==File || mMode==XmlFile ;};
141 bool XmlMode( void) const { return mMode==XmlFile ;};
157 std::string Str( void);
163 std::ostream* Streamp( void);
171 int Columns( void) const;
179 void Columns( int columns);
203 void Write( Token& rToken);
219 void WriteString( const std::string& rString);
242 void WriteText( const std::string& rText);
264 void WriteText( Token& rBeginTag, const std::string& rText);
279 void WriteText( const std::string& rLabel, const std::string& rText);
302 void WriteVerbatim( Token& rBeginTag, const std::string& rText);
317 void WriteVerbatim( const std::string& rLabel, const std::string& rText);
333 void WriteCharacterData( const std::string& rCharData);
343 void WriteInteger( Idx index);
353 void WriteFloat( const double& val);
363 void WriteInteger16( long int val);
373 void WriteOption( const std::string& rOpt);
383 void WriteBegin( const std::string& rLabel);
393 void WriteEnd( const std::string& rLabel);
403 void WriteEmpty( const std::string& rLabel);
413 void WriteComment( const std::string& rComment);
423 void WriteXmlComment( const std::string& rComment);
435 void WriteBinary( const char* pData, long int len);
463 WriteString(rString);
519 void DoFlush( bool clf=1);
A TokenWriter writes sequential tokens to a file, a string or stdout.
bool StdoutMode(void) const Test for console mode.
bool XmlMode(void) const Test for xml file mode.
std::ostringstream mSStream Actual stream object, string output.
bool mEndl Endl seperator on/off.
std::ostream * mpStream ostream object pointer
std::string mFileName Filename.
Token mOutBuffer Outputbuffer.
Mode Mode of operation: write to file, string or stdout.
int mColCount Column counter.
int mColumns Number of columns.
std::ostream * pSStream Actual stream object, stream output.
bool FileMode(void) const Test for file mode (incl.
std::string mDocType Xml doctype if in xml mode.
std::ofstream mFStream Actual stream object, file output.
Tokens model atomic data for stream IO.
libFAUDES resides within the namespace faudes.
uint32_t Idx Type definition for index type (allways 32bit)
libFAUDES 2.32f
--- 2024.12.22
--- c++ api documentaion by doxygen
|