PTLib  Version 2.10.4
PvCard Class Reference

Class to represent a vCard as per RFC2426. More...

#include <vcard.h>

Inheritance diagram for PvCard:
PObject

List of all members.

Classes

struct  Address
struct  EMail
struct  ExtendedType
class  InlineValue
 Representation of EBNF img-inline-value/snd-inline-value. More...
struct  MultiValue
class  ParamValue
 Representation of EBNF param-value. More...
class  ParamValues
 Comma separated list of param-value's. More...
class  Separator
struct  Telephone
class  TextValue
 Representation of EBNF text-value. More...
class  TextValues
 Comma separated list of text-value's. More...
class  Token
 Representation of token (EBNF group, name, iana-token or x-name) More...
class  TypeValues
class  URIValue

Public Types

enum  Format { e_Standard, e_XML_XMPP, e_XML_RDF, e_XML_RFC }
 Output string formats. More...
typedef std::map< Token,
ParamValues
ParamMap
typedef std::map< Token,
ExtendedType
ExtendedTypeMap

Public Member Functions

 PvCard ()
bool IsValid () const
virtual void PrintOn (ostream &strm) const
 Output the contents of the object to the stream.
virtual void ReadFrom (istream &strm)
 Input the contents of the object from the stream.
bool Parse (const PString &str)
PString AsString (Format fmt=e_Standard)

Public Attributes

Token m_group
TextValue m_fullName
TextValue m_version
TextValue m_familyName
TextValue m_givenName
TextValues m_additionalNames
TextValue m_honorificPrefixes
TextValue m_honorificSuffixes
TextValues m_nickNames
TextValue m_sortString
PTime m_birthday
URIValue m_url
InlineValue m_photo
InlineValue m_sound
TextValue m_timeZone
double m_latitude
double m_longitude
TextValue m_title
TextValue m_role
InlineValue m_logo
TextValue m_agent
TextValue m_organisationName
TextValue m_organisationUnit
TextValue m_mailer
TextValues m_categories
TextValue m_note
TextValue m_productId
TextValue m_guid
TextValue m_revision
TextValue m_class
TextValue m_publicKey
PArray< Addressm_addresses
PArray< Addressm_labels
PArray< Telephonem_telephoneNumbers
PArray< EMailm_emailAddresses
ExtendedTypeMap m_extensions

Detailed Description

Class to represent a vCard as per RFC2426.


Member Typedef Documentation

typedef std::map<Token, ParamValues> PvCard::ParamMap

Member Enumeration Documentation

Output string formats.

If operator<< or PrintOn() is used the stream width() parameter may be set to this to indicate the output format. e.g. stream << setw(PvCard::e_XML_XMPP) << card;

Enumerator:
e_Standard 

As per RFC2425.

e_XML_XMPP 

Jabber XML.

e_XML_RDF 

W3C version.

e_XML_RFC 

Draft RFC.


Constructor & Destructor Documentation


Member Function Documentation

bool PvCard::IsValid ( ) const
bool PvCard::Parse ( const PString str)
virtual void PvCard::PrintOn ( ostream &  strm) const [virtual]

Output the contents of the object to the stream.

The exact output is dependent on the exact semantics of the descendent class. This is primarily used by the standard operator<< function.

The default behaviour is to print the class name.

Reimplemented from PObject.

virtual void PvCard::ReadFrom ( istream &  strm) [virtual]

Input the contents of the object from the stream.

The exact input is dependent on the exact semantics of the descendent class. This is primarily used by the standard operator>> function.

The default behaviour is to do nothing.

Reimplemented from PObject.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines