|
Go to the documentation of this file.
23 #ifndef FAUDES_TOKENWRITER_H
24 #define FAUDES_TOKENWRITER_H
82 std::ios::openmode openmode = std::ios::out|std::ios::trunc);
94 TokenWriter( const std::string& rFilename, const std::string& doctype);
106 TokenWriter(std::ostream& rStream, const std::string& doctype= "");
118 std::string FileName( void) const;
132 bool FileMode( void) const { return mMode==File || mMode==XmlFile ;};
140 bool XmlMode( void) const { return mMode==XmlFile ;};
156 std::string Str( void);
162 std::ostream* Streamp( void);
170 int Columns( void) const;
178 void Columns( int columns);
202 void Write( Token& rToken);
218 void WriteString( const std::string& rString);
241 void WriteText( const std::string& rText);
263 void WriteText( Token& rBeginTag, const std::string& rText);
278 void WriteText( const std::string& rLabel, const std::string& rText);
301 void WriteVerbatim( Token& rBeginTag, const std::string& rText);
316 void WriteVerbatim( const std::string& rLabel, const std::string& rText);
332 void WriteCharacterData( const std::string& rCharData);
342 void WriteInteger( Idx index);
352 void WriteFloat( const double& val);
362 void WriteInteger16( long int val);
372 void WriteOption( const std::string& rOpt);
382 void WriteBegin( const std::string& rLabel);
392 void WriteEnd( const std::string& rLabel);
402 void WriteEmpty( const std::string& rLabel);
412 void WriteComment( const std::string& rComment);
422 void WriteXmlComment( const std::string& rComment);
434 void WriteBinary( const char* pData, long int len);
462 WriteString(rString);
518 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.32b
--- 2024.03.01
--- c++ api documentaion by doxygen
|