Go to the documentation of this file.
34 #ifndef MWAW_PROPERTY_HANDLER
35 # define MWAW_PROPERTY_HANDLER
55 virtual void insertElement(
const char *psName,
const librevenge::RVNGPropertyList &xPropList) = 0;
57 virtual void characters(librevenge::RVNGString
const &sCharacters) = 0;
60 bool checkData(librevenge::RVNGBinaryData
const &encoded);
62 bool readData(librevenge::RVNGBinaryData
const &encoded);
92 void insertElement(
const char *psName,
const librevenge::RVNGPropertyList &xPropList);
94 void characters(librevenge::RVNGString
const &sCharacters);
96 bool getData(librevenge::RVNGBinaryData &data);
102 void writeString(
const librevenge::RVNGString &name);
104 void writeProperty(
const char *key,
const librevenge::RVNGProperty &prop);
bool readPropertyList(librevenge::RVNGInputStream &input, librevenge::RVNGPropertyList &lists)
low level: reads a property list: number of properties followed by list of properties
Definition: MWAWPropertyHandler.cxx:269
virtual void characters(librevenge::RVNGString const &sCharacters)=0
writes a list of characters
static bool readLong(librevenge::RVNGInputStream &input, long &val)
low level: reads an long value
Definition: MWAWPropertyHandler.cxx:348
bool readPropertyListVector(librevenge::RVNGInputStream &input, librevenge::RVNGPropertyListVector &vect)
low level: reads a property vector: number of properties list followed by list of properties list
Definition: MWAWPropertyHandler.cxx:246
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
bool readCharacters(librevenge::RVNGInputStream &input)
reads a set of characters
Definition: MWAWPropertyHandler.cxx:232
MWAWPropertyHandlerEncoder()
constructor
Definition: MWAWPropertyHandler.cxx:55
bool readString(librevenge::RVNGInputStream &input, librevenge::RVNGString &s)
low level: reads a string : size and string
Definition: MWAWPropertyHandler.cxx:329
virtual void insertElement(const char *psName, const librevenge::RVNGPropertyList &xPropList)=0
inserts an element ( given a property list )
void writePropertyListVector(const librevenge::RVNGPropertyListVector &vect)
adds a property vector: a int: #vect followed by vect[0], vect[1], ...
Definition: MWAWPropertyHandler.cxx:128
virtual void insertElement(const char *psName)=0
inserts a simple element
bool readData(librevenge::RVNGBinaryData const &encoded)
tries to read the data
Definition: MWAWPropertyHandler.cxx:158
MWAWPropertyHandlerDecoder & operator=(MWAWPropertyHandlerDecoder const &)=delete
bool readInsertElement(librevenge::RVNGInputStream &input)
reads an simple element
Definition: MWAWPropertyHandler.cxx:197
void characters(librevenge::RVNGString const &sCharacters)
writes a list of characters
Definition: MWAWPropertyHandler.cxx:78
bool readData(librevenge::RVNGBinaryData const &encoded)
reads a encoded librevenge::RVNGBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:379
void writePropertyList(const librevenge::RVNGPropertyList &prop)
adds a property list: int #prop followed by the different properties
Definition: MWAWPropertyHandler.cxx:109
MWAWPropertyHandlerDecoder(MWAWPropertyHandlerDecoder const &orig)=delete
void writeString(const librevenge::RVNGString &name)
adds a string: size and string
Definition: MWAWPropertyHandler.cxx:85
a generic property handler
Definition: MWAWPropertyHandler.hxx:43
MWAWPropertyHandlerDecoder(MWAWPropertyHandler *hdl=nullptr)
constructor given a MWAWPropertyHandler
Definition: MWAWPropertyHandler.cxx:152
virtual ~MWAWPropertyHandler()
destructor
Definition: MWAWPropertyHandler.cxx:60
std::stringstream m_f
the streamfile
Definition: MWAWPropertyHandler.hxx:111
void writeProperty(const char *key, const librevenge::RVNGProperty &prop)
adds a property: a string key, a string corresponding to value
Definition: MWAWPropertyHandler.cxx:99
void insertElement(const char *psName)
inserts an element
Definition: MWAWPropertyHandler.cxx:64
Definition: MWAWPropertyHandler.cxx:149
bool checkData(librevenge::RVNGBinaryData const &encoded)
checks a encoded librevenge::RVNGBinaryData created by MWAWPropertyHandlerEncoder
Definition: MWAWPropertyHandler.cxx:373
MWAWPropertyHandler * m_handler
the streamfile
Definition: MWAWPropertyHandler.cxx:365
write in librevenge::RVNGBinaryData a list of tags/and properties
Definition: MWAWPropertyHandler.hxx:84
bool readInsertElementWithList(librevenge::RVNGInputStream &input)
reads an element with a property list
Definition: MWAWPropertyHandler.cxx:211
MWAWPropertyHandler()
constructor
Definition: MWAWPropertyHandler.hxx:46
libmwaw API: main libmwaw interface header
bool readProperty(librevenge::RVNGInputStream &input, librevenge::RVNGPropertyList &list)
low level: reads a property and its value, adds it to list
Definition: MWAWPropertyHandler.cxx:311
void writeLong(long val)
adds a long value if f
Definition: MWAWPropertyHandler.cxx:92
bool getData(librevenge::RVNGBinaryData &data)
retrieves the data
Definition: MWAWPropertyHandler.cxx:135
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20