Software and Services, Portable Libraries
2019.Mar.01
A library for managing digital certificates
|
An RFC-iCalendar implementation of VERSION parameter. More...
#include </home/doug/src/SoftwareAndServices/libSaSiCalendar/vcard_version.hpp>
Public Member Functions | |
version () | |
version Constructor. More... | |
version (const float_value *Value) | |
version Constructor. More... | |
version (double Value) | |
version Constructor. More... | |
virtual | ~version () |
version Destructor. More... | |
virtual bool | add (const BaseValueType *data) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const value *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const boolean *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const binary *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const text *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const uri *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const Uri *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const cal_address *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const utc_offset *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const date *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const time *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const date_time *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const dur_value *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const float_value *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const integer *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const period *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const recur *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const cal_query *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const char *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const upn_value *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const upn_filter *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (Tokens_t Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (const TokenValue *Value) |
Many RFC-iCalendar object may contain zero or more values. More... | |
virtual bool | add (iCalError *anError) const |
Add an error to this object. More... | |
bool | addIfNew (const parameter *) |
Add a parameter to this ones list - IF - no parameter with the same name already exists. More... | |
virtual bool | addParameter (const parameter *newParam) |
Add a parameter to this ones list. More... | |
bool | addX (const char *xName, char *xValue) |
Add each of the value types - VALUES. More... | |
virtual InstanceCount_t | decInstance () const |
Override the default decInstance, so we can also update the instances of the property parameters. More... | |
double | get (unsigned int nTh=0) const |
Get the nTh value from this property. More... | |
virtual iCalErrorVec * | getErrorList () const |
Return the error list, may be NULL or empty if no errors. More... | |
virtual InstanceCount_t | getInstance () const |
virtual InstanceCount_t | getInstance () const |
Tokens_t | getName () const |
parameter * | getParam (const char *name) const |
parameter * | getParam (Tokens_t name) const |
parameter * | getParam (unsigned int nTh) const |
Get the nTh parameter. More... | |
const parameterVec * | getParams () const |
bool | getParamValue (String *Results, Tokens_t token, unsigned int nTh) |
Given a TOKEN of a parameter, return the nTh value for the parameter. More... | |
virtual Tokens_t | getType (unsigned int nTh=0) const |
Get the type of data stored. More... | |
virtual const value * | getValue (unsigned int nTh=0) const |
Get the nTh value. More... | |
virtual size_t | getValueCount () const |
Get the number of values stored. More... | |
Tokens_t | getValueType () const |
const text * | getXName () const |
virtual InstanceCount_t | incInstance () const |
Override the default incInstance, so we can also update the instances of the property parameters. More... | |
void | operator delete (void *data) |
We override delete so we can do smart instance counting. More... | |
bool | operator!= (const value &Other) const |
value != compare operator. More... | |
bool | operator!= (const value *Other) const |
value != compare operator. More... | |
bool | operator!= (const property &Other) const |
property != operator More... | |
bool | operator== (const value &Other) const |
value == compare operator. More... | |
bool | operator== (const value *Other) const |
value == compare operator. More... | |
bool | operator== (const property &Other) const |
property == operator More... | |
bool | parse (Parse &in, component *errors) |
Parse a property. More... | |
bool | parse (const char *in, component *errors) |
Parse a property. More... | |
bool | parseDateTime (Parse &in, Tokens_t DefalutValueType, component *errors) |
Parse a date_time property. More... | |
bool | parseText (Parse &in, Tokens_t DefalutValueType, component *errors) |
Parse a text property. More... | |
bool | parseValue (Parse &in, Tokens_t DefalutValueType, component *errors) |
Based on the VALUE (or default), parse the data and add it to the property. More... | |
bool | remove (const parameter *param) |
Remove the provided parameter from this property. More... | |
bool | setName (Tokens_t name) |
Set the name of the property. More... | |
Tokens_t | setName (const char *name) |
Set the name of the property. More... | |
virtual bool | setType (Tokens_t token, unsigned int nTh=0) |
Set the type of the nTh value. More... | |
bool | setValueType (Tokens_t type) |
Set/Get value type. More... | |
bool | sprint (String *TheResults, const char *Separator=NULL) const |
Print the object in RFC-iCalendar format. More... | |
bool | sprint (String *Results) const |
Print the property in RFC-iCalendar format. More... | |
virtual bool | validParams (const Tokens_t *validArray) const |
Passed an array of Tokens_t, terminated with UnknwonTokens_t The parameters can only contain those tokens, or returns false. More... | |
An RFC-iCalendar implementation of VERSION parameter.
Definition at line 82 of file vcard_version.hpp.
SoftwareAndServices::Library::vCard::version::version | ( | ) |
version Constructor.
SoftwareAndServices::Library::vCard::version::version | ( | const float_value * | Value | ) |
version Constructor.
Value | The initial value. |
SoftwareAndServices::Library::vCard::version::version | ( | double | Value | ) |
version Constructor.
Value | The initial value. |
|
virtual |
version Destructor.
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
data | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Many RFC-iCalendar object may contain zero or more values.
The add() methods below add a new value to this object.
Only one 'type' of data may be added. Multiple of the same 'type' may be added. As in you can add multiple 'uri' values, however you can not add a 'uri' and a 'cal_query' to the same object (in most cases there are some special value types).
Value | The data to add. |
|
virtualinherited |
Add an error to this object.
anErro | The error to add. |
|
inherited |
Add a parameter to this ones list - IF - no parameter with the same name already exists.
newParam | The new parameter to be added. |
|
virtualinherited |
Add a parameter to this ones list.
newParam | The new parameter to be added. |
|
inherited |
Add each of the value types - VALUES.
And sets the correct value type. The will return FALSE if _type is set to something other than UNKNOWN and an add() call is made for another type. All MUST BE the same type for the same property.
xName | The name of the X- value type to add. |
xValue | The value to add. |
|
virtualinherited |
Override the default decInstance, so we can also update the instances of the property parameters.
Reimplemented from SoftwareAndServices::Library::Common::instance< property >.
|
inherited |
Get the nTh value from this property.
nTh | Which value to get (first is zero). |
|
virtualinherited |
Return the error list, may be NULL or empty if no errors.
|
inlinevirtualinherited |
Definition at line 118 of file instance.hpp.
|
inlinevirtualinherited |
Definition at line 118 of file instance.hpp.
|
inherited |
|
inherited |
name | The name of the parameter to get. |
|
inherited |
name | The name of the parameter to get. |
|
inherited |
Get the nTh parameter.
nTh | Which parameter to get (first is zero). |
|
inherited |
|
inherited |
Given a TOKEN of a parameter, return the nTh value for the parameter.
Results | This is where the value will be appended to. |
token | The name of the parameter to fetch the value of. |
nTh | Which value to fetch from the parameter (first is zero). |
|
virtualinherited |
Get the type of data stored.
nTh | This starts from zero, get the type of the nTh value. |
|
virtualinherited |
Get the nTh value.
nTh | The nTh value to get (start from zero) |
|
virtualinherited |
Get the number of values stored.
|
inherited |
|
inherited |
|
virtualinherited |
Override the default incInstance, so we can also update the instances of the property parameters.
Reimplemented from SoftwareAndServices::Library::Common::instance< property >.
|
inherited |
We override delete so we can do smart instance counting.
data | Pointer to this kind of object to be deleted. |
|
inherited |
value != compare operator.
Other | The other value to compare to. |
|
inherited |
value != compare operator.
Other | The other value to compare to. |
|
inherited |
property != operator
Other | The other property to compare this one to. |
|
inherited |
value == compare operator.
Other | The other value to compare to. |
|
inherited |
value == compare operator.
Other | The other value to compare to. |
|
inherited |
property == operator
Other | The other property to compare this one to. |
|
inherited |
Parse a property.
in | An open Parse object. |
errors | Where errors will be stored. |
|
inherited |
Parse a property.
in | A pointer to a property string. |
errors | Where errors cab be stored. |
|
inherited |
Parse a date_time property.
in | A pointer to a property string. |
DefalutValueType | The default value type. |
errors | Where errors cab be stored. |
|
inherited |
Parse a text property.
in | A pointer to a property string. |
DefalutValueType | The default value type. |
errors | Where errors cab be stored. |
|
inherited |
Based on the VALUE (or default), parse the data and add it to the property.
in | A pointer to a property string. |
DefalutValueType | The default value type. |
errors | Where errors can be stored. |
|
inherited |
Remove the provided parameter from this property.
param | The parameter to remove. |
|
inherited |
Set the name of the property.
name | The name of the property. |
|
inherited |
Set the name of the property.
name | The name of the property. |
|
virtualinherited |
Set the type of the nTh value.
token | The type of data to be set. |
nTh | The nTh (starts from zero) value type to be set. |
|
inherited |
Set/Get value type.
NOTE - this MUST agree with the VALUE= parameter if it is present.
type | The type of value to set this property to. |
|
inherited |
Print the object in RFC-iCalendar format.
TheResults | Append the string to this string. |
Separator | If not-NULL, separate the values with this string. |
|
inherited |
Print the property in RFC-iCalendar format.
Results | Append the results to Results. |
|
virtualinherited |
Passed an array of Tokens_t, terminated with UnknwonTokens_t The parameters can only contain those tokens, or returns false.
XPARAM may be included to allow ANY XPARAM.
validArray | List of valid tokens (parameters) for this property. |