#include <WinEvent.h>
Inheritance diagram for WinEvent:
Public Member Functions | |
WinEvent () | |
Default Constructor. | |
WinEvent (const wstring dataString) | |
Constructor: fills propertyMap parsing the passed vCalendar string. | |
~WinEvent () | |
Destructor. | |
int | parse (const wstring dataString) |
Parse a vCalendar string and fills the propertyMap. | |
wstring & | toString () |
Format and return a vCalendar string from the propertyMap. | |
WinRecurrence * | getRecPattern () |
Returns a pointer to the (internally owned) WinRecurrence. | |
list< wstring > * | getExcludeDates () |
Returns a pointer to the list (internally owned) of exclude dates. | |
list< wstring > * | getIncludeDates () |
Returns a pointer to the list (internally owned) of include dates. | |
list< WinRecipient > * | getRecipients () |
Returns a pointer to the list (internally owned) of recipients. |
The object can be filled passing a vCalendar, or filling directly the map. Calling 'toString()' a vCalendar is formatted and returned.
int WinEvent::parse | ( | const wstring | dataString | ) |
Parse a vCalendar string and fills the propertyMap.
The map is cleared and will contain only found properties at the end of the parsing.
dataString | input vCalendar string to be parsed |
wstring& WinEvent::toString | ( | ) |
Format and return a vCalendar string from the propertyMap.
Not supported properties are ignored and so not formatted as they don't have a correspondence in propertyMap.