#include <WinNoteSIF.h>
Public Member Functions | |
WinNoteSIF () | |
Default Constructor. | |
WinNoteSIF (const wstring dataString, const wchar_t **fields) | |
Constructor: fills propertyMap parsing the passed SIF. | |
~WinNoteSIF () | |
Destructor. | |
int | parse (const wstring dataString) |
Parse a SIF string and fills the propertyMap. | |
wstring & | toString () |
Format and return a SIF string from the propertyMap. | |
Private Attributes | |
wstring | sif |
Internal string formatted (SIF). | |
const wchar_t ** | sifFields |
NULL terminated array of SIF fields names. |
The object can be filled passing a SIF string, or filling directly the map. Calling 'toString()' a SIF is formatted and returned.
WinNoteSIF::WinNoteSIF | ( | const wstring | dataString, | |
const wchar_t ** | fields | |||
) |
Constructor: fills propertyMap parsing the passed SIF.
dataString | the input SIF string | |
fields | the NULL terminated array of SIF fields | |
fields | the NULL terminated array of SIF fields for recurrence pattern |
int WinNoteSIF::parse | ( | const wstring | dataString | ) | [virtual] |
Parse a SIF string and fills the propertyMap.
The map is cleared and will contain only found properties at the end of the parsing.
dataString | input SIF string to be parsed |
Reimplemented from WinNote.
wstring& WinNoteSIF::toString | ( | ) | [virtual] |
Format and return a SIF string from the propertyMap.
Not supported properties are ignored and so not formatted as they don't have a correspondence in propertyMap.
Reimplemented from WinNote.