#include <WinRecurrenceSIF.h>
Public Member Functions | |
WinRecurrenceSIF () | |
Default Constructor. | |
WinRecurrenceSIF (const wstring dataString, const wchar_t **fields) | |
Constructor: fills propertyMap parsing the SIF rec pattern string. | |
~WinRecurrenceSIF () | |
Destructor. | |
void | setSifFields (const wchar_t **fields) |
Sets the internal pointer sifFields with the passed array. | |
int | parse (const wstring dataString) |
Parse a SIF string and fills the propertyMap. | |
wstring & | toString () |
Format and return a SIF rec pattern string from the propertyMap. | |
wstring | adaptToSIFSpecs (const wstring &propName, const wstring &propValue) |
Transform the value of the specified property according to the SIF specifications. | |
Private Attributes | |
wstring | sif |
Internal string formatted (SIF rec pattern). | |
const wchar_t ** | sifFields |
NULL terminated array of SIF fields names. |
The object can be filled passing a SIF rec pattern string, or filling directly the map. Calling 'toString()' a SIF rec pattern string is formatted and returned.
WinRecurrenceSIF::WinRecurrenceSIF | ( | const wstring | dataString, | |
const wchar_t ** | fields | |||
) |
Constructor: fills propertyMap parsing the SIF rec pattern string.
dataString | input SIF string to parse | |
fields | the NULL terminated array of SIF fields |
wstring WinRecurrenceSIF::adaptToSIFSpecs | ( | const wstring & | propName, | |
const wstring & | propValue | |||
) |
Transform the value of the specified property according to the SIF specifications.
The values are formatted following the vcard and icalendar specs that in some cases they are different from the SIF expectations. If there are no differences, propValue is returned.
propName | [IN] the property name | |
propValue | [IN] the property value |
int WinRecurrenceSIF::parse | ( | const wstring | dataString | ) | [virtual] |
Parse a SIF string and fills the propertyMap.
dataString | input SIF string to parse |
Reimplemented from WinRecurrence.