|
Maps SDK for C++ 1.0.0
|
ContactInfo object. More...


Public Member Functions | |
| ContactInfo (const ContactInfo &)=default | |
| Default copy constructor. | |
| ContactInfo (ContactInfo &&)=default | |
| Default move constructor noexcept is deduced. | |
| ContactInfo & | operator= (const ContactInfo &ci)=default |
| Default copy assignment. | |
| ContactInfo & | operator= (ContactInfo &&ci)=default |
| Default move assignment noexcept is deduced. | |
| bool | operator== (const ContactInfo &ci) const |
| Comparison operator equal. | |
| bool | operator!= (const ContactInfo &ci) const |
| Comparison operator not equal. | |
| int | getFieldsCount () const |
| Gets the field count. | |
| EContactInfoFieldType | getFieldType (int index) const |
| Gets the field type. | |
| const StringRef | getFieldName (int index) const |
| Gets the field name/short description. | |
| const StringRef | getFieldValue (int index) const |
| Gets the field value. | |
| template<typename TCollector> | |
| bool | iterateFields (TCollector collector, EContactInfoFieldType type=EContactInfoFieldType::FT_Last) const |
| Iterate all fields via a collector. | |
| ContactInfo & | setField (int index, EContactInfoFieldType type, String const &value, String const &name) noexcept |
| Sets field type, value and name. | |
| ContactInfo & | addField (EContactInfoFieldType type, const String &value, const String &name) noexcept |
| Adds a new field. | |
| ContactInfo & | removeField (int index) |
| Removes a field specified by index. | |
ContactInfo object.
It specifies the structure of the information used to contact a person ( ex. phone number, email, home page), as a list of TContactInfoFieldType "fields".
Implements share-read / copy-on-write Api object over IContactInfo.
|
inlinenoexcept |
Adds a new field.
| [in] | type | Field's type |
| [in] | value | Field's value |
| [in] | name | Field's name |
|
inline |
Gets the field name/short description.
| [in] | index | Field index |
|
inline |
Gets the field count.
|
inline |
Gets the field type.
| [in] | index | Field index |
|
inline |
Gets the field value.
| [in] | index | Field index |
|
inline |
Iterate all fields via a collector.
Collector should have the following signature bool(int, TContactInfoFieldType, String, String )
Returns true if iteration should continue and false if iteration should stop
| [in] | collector | The collector |
| [in] | type | The field type to iterate over |
| TCollector | The collector type |
|
inline |
Comparison operator not equal.
| [in] | ci | The object to be compared |
|
default |
Default copy assignment.
| [in] | ci | The object to be copied |
|
default |
Default move assignment noexcept is deduced.
| [in] | ci | The object to be moved |
|
inline |
Comparison operator equal.
| [in] | ci | The object to be compared |
|
inline |
Removes a field specified by index.
| [in] | index | Field index |
|
inlinenoexcept |
Sets field type, value and name.
| [in] | index | Field index |
| [in] | type | Field's type |
| [in] | value | Field's value |
| [in] | name | Field's name |