#include <WinNote.h>
Public Member Functions | |
WinNote () | |
Default Constructor. | |
WinNote (const wstring dataString) | |
Constructor: fills propertyMap parsing the passed vNote string. | |
~WinNote () | |
Destructor. | |
virtual int | parse (const wstring dataString) |
Parse a vNote string and fills the propertyMap. | |
virtual wstring & | toString () |
Format and return a vNote string from the propertyMap. | |
Private Member Functions | |
bool | checkVNoteTypeAndVersion (VObject *vo) |
Checks the productID and version of VObject passed for vNote. | |
Private Attributes | |
wstring | vNote |
Internal string formatted (VNOTE). |
The object can be filled passing a vNote, or filling directly the map. Calling 'toString()' a vNote is formatted and returned.
bool WinNote::checkVNoteTypeAndVersion | ( | VObject * | vo | ) | [private] |
Checks the productID and version of VObject passed for vNote.
vo | the VObject to check |
virtual int WinNote::parse | ( | const wstring | dataString | ) | [virtual] |
Parse a vNote string and fills the propertyMap.
The map is cleared and will contain only found properties at the end of the parsing.
dataString | input vNote string to be parsed |
Implements WinItem.
Reimplemented in WinNoteSIF.
virtual wstring& WinNote::toString | ( | ) | [virtual] |
Format and return a vNote string from the propertyMap.
Not supported properties are ignored and so not formatted as they don't have a correspondence in propertyMap.
Implements WinItem.
Reimplemented in WinNoteSIF.