|
Go to the documentation of this file.
23 #ifndef FAUDES_TOKEN_H
24 #define FAUDES_TOKEN_H
108 void SetString( const std::string& rName);
116 void SetBegin( const std::string& rName);
124 void SetEnd( const std::string& rName);
132 void SetEmpty( const std::string& rName);
140 void SetOption( const std::string& rName);
148 void SetInteger( const Int number);
156 void SetInteger16( const Int number);
164 void SetBoolean( const Int number);
185 void SetBinary( const char* data, std::size_t len);
200 Int IntegerValue( void) const;
216 const std::string& StringValue( void) const;
224 const std::string& OptionValue( void) const;
233 const std::string& PreceedingSpace( void) const;
241 void PreceedingSpace( const std::string& sep);
254 TokenType Type( void) const;
262 bool IsNone( void) const;
270 bool IsInteger( void) const;
278 bool IsInteger16( void) const;
286 bool IsBoolean( void) const;
294 bool IsFloat( void) const;
302 bool IsOption( void) const;
310 bool IsString( void) const;
318 bool IsBinary( void) const;
326 bool IsCdata( void) const;
334 bool IsBegin( void) const;
344 bool IsBegin( const std::string& tag) const;
352 bool IsEnd( void) const;
362 bool IsEnd( const std::string& tag) const;
370 bool IsEmpty( void) const;
376 void ClearAttributes();
384 void ClrAttribute( const std::string& name);
395 void InsAttribute( const std::string& name, const std::string& value);
406 void InsAttributeString( const std::string& name, const std::string& value);
417 void InsAttributeInteger( const std::string& name, Int value);
428 void InsAttributeInteger16( const std::string& name, Int value);
439 void InsAttributeBoolean( const std::string& name, Int value);
450 void InsAttributeFloat( const std::string& name, faudes::Float value);
460 bool ExistsAttributeString( const std::string& name);
470 bool ExistsAttributeInteger( const std::string& name);
480 bool ExistsAttributeFloat( const std::string& name);
490 const std::string& AttributeStringValue( const std::string& name);
500 Int AttributeIntegerValue( const std::string& name);
526 int Read(std::istream* pStream, bool fcomments= true);
536 void Write(std::ostream* pStream) const;
548 static void WriteBinary(std::ostream* pStream, const char* pData, std::size_t len);
563 static void WriteVerbatim(std::ostream* pStream, const std::string& rString, bool lfflag=0);
578 static int WriteEscapedString(std::ostream* pStream, const std::string& outstr);
595 static int ReadEscapedString(std::istream* pStream, char stop, std::string& rString);
614 static int ReadCharacterData(std::istream* pStream, std::string& rString, bool fcomments);
625 std::string Str( void) const;
666 typedef std::map<std::string, AttributeValue>::iterator aiterator;
667 typedef std::map<std::string, AttributeValue>::const_iterator caiterator;
673 bool InterpretNumber( const std::string& numstr, int& type, Int& ival, faudes::Float& fval);
676 bool InterpretNumber( void);
690 void WriteString(std::ostream* pStream, const std::string& delim) const;
697 void WriteBinary(std::ostream* pStream) const;
714 int ReadString(std::istream* pStream, char stop);
725 int ReadAttributes(std::istream* pStream);
738 int ReadMarkup(std::istream* pStream);
749 int ReadBinary(std::istream* pStream);
762 int ReadSpace(std::istream* pStream, bool fcomments= true);
libFAUDES 2.28a
--- 2016.09.13
--- c++ api documentaion by doxygen
|