#include <Greeting.H>
Public Types | |
enum | Access { UNSET_AC = -1, ALL = 0, NONE_AC, NULL_AC, PERSONAL, PERSONAL_AND_OTHER, OTHER_AC } |
For details about the following codes, see RFC 3730 - Session 2.4. | |
enum | Purpose { ADMIN = 0, CONTACT, PROV, OTHER_PR } |
For details about the following codes, see RFC 3730 - Session 2.4. | |
enum | Recipient { OTHER_RC = 0, OURS, PUBLIC, SAME, UNRELATED } |
For details about the following codes, see RFC 3730 - Session 2.4. | |
enum | Retention { UNSET_RT = -1, BUSINESS = 0, INDEFINITE, LEGAL, NONE_RT, STATED } |
For details about the following codes, see RFC 3730 - Session 2.4. | |
Public Member Functions | |
void | set_svID (const string &svID) |
Sets the svID. | |
void | set_svDate (const string &svDate) |
Sets the server's current date and time. | |
void | set_version (const string &version) |
Sets the protocol version. | |
void | set_lang (const string &lang) |
Sets the language supported by the server. | |
void | set_objURI (const string &objURI) |
Sets the object the server supports. | |
void | set_extURI (const string &extURI) |
Sets object extensions the server supports. | |
void | set_access (const Access &access) |
Sets the server's Access parameter. | |
void | set_purpose (const Purpose &purpose) |
Sets the server's Purpose parameter. | |
void | set_recipient (const Recipient &recipient) |
Sets the server's Recipient parameter. | |
void | set_recDesc (const string &recDesc) |
Sets the server's Recipient description. | |
void | set_retention (const Retention &retention) |
Sets the server's Retention parameter. | |
void | set_expiry (const int &type, const string &expiry) |
Sets the server's policy expiry. | |
string | get_svID () |
Returns the svID. | |
string | get_svDate () |
Returns the server's current date and time. | |
set< string > | get_version () |
Returns the protocol version. | |
set< string > | get_lang () |
Returns the language supported by the server. | |
set< string > | get_objURI () |
Returns the object the server supports. | |
set< string > | get_extURI () |
Returns the object extensions the server supports. | |
Access | get_access () |
Returns the server's Access parameter. | |
set< Purpose > | get_purpose () |
Returns the server's Purpose parameter. | |
set< Recipient > | get_recipient () |
Returns the server's Recipient parameter. | |
string | get_recDesc () |
Returns the server's Recipient description. | |
Retention | get_retention () |
Returns the server's Retention parameter. | |
int | get_type_expiry () |
Returns the server's policy expiry type. | |
string | get_expiry () |
Returns the server's policy expiry. | |
void | reset () |
reset attributes | |
Protected Attributes | |
string | _svID |
Server Name. | |
string | _svDate |
Server Current Date and Time (UTC). | |
set< string > | _version |
Protocol versions supported by the server. | |
set< string > | _lang |
Languages known by the server. | |
set< string > | _objURI |
Objects that the server is capable of managing. | |
set< string > | _extURI |
Object extensions supported by the server (optional). | |
Access | _access |
Access provided by the server (optional). | |
set< Purpose > | _purpose |
Data collection purposes (optional). | |
set< Recipient > | _recipient |
Data recipients (optional). | |
string | _recDesc |
Recipient description (optional). | |
Retention | _retention |
Data retention (optional). | |
int | _type_expiry |
Expiry type (absolute = 0, relative = 1) (optional). | |
string | _expiry |
Policy lifetime (optional). |
|
Returns the server's Access parameter.
|
|
Returns the server's policy expiry.
|
|
Returns the object extensions the server supports.
|
|
Returns the language supported by the server.
|
|
Returns the object the server supports.
|
|
Returns the server's Purpose parameter.
|
|
Returns the server's Recipient description.
|
|
Returns the server's Recipient parameter.
|
|
Returns the server's Retention parameter.
|
|
Returns the server's current date and time.
|
|
Returns the svID.
|
|
Returns the server's policy expiry type.
|
|
Returns the protocol version.
|
|
Sets the server's Access parameter.
|
|
Sets the server's policy expiry.
|
|
Sets object extensions the server supports.
|
|
Sets the language supported by the server.
|
|
Sets the object the server supports.
|
|
Sets the server's Purpose parameter.
|
|
Sets the server's Recipient description.
|
|
Sets the server's Recipient parameter.
|
|
Sets the server's Retention parameter.
|
|
Sets the server's current date and time.
|
|
Sets the svID.
|
|
Sets the protocol version.
|