#include <AsnCreateCmd.H>
Inheritance diagram for AsnCreateCmd:
Public Member Functions | |
AsnCreateCmd (bool reset=true) | |
Default constructor. | |
void | set_asn (const int asn) |
Sets asn. | |
int | get_asn () const |
Returns asn. | |
void | set_organization (const string &organization) |
Sets organization. | |
string | get_organization () const |
Returns organization associated with the asn. | |
void | insert_contact (const string &type, const string &identification) |
Inserts a contact in the map of other contacts. | |
map< string, string, less< string > > | get_contacts () |
Returns map of other contacts. | |
void | reset () |
Reset object attributes. | |
Protected Attributes | |
int | _asn |
autonomous system number | |
string | _organization |
organization associated with the asn | |
map< string, string, less< string > > | _contacts |
other contact objects |
int AsnCreateCmd::get_asn | ( | ) | const [inline] |
Returns asn.
map< string, string, less<string> > AsnCreateCmd::get_contacts | ( | ) | [inline] |
Returns map of other contacts.
string AsnCreateCmd::get_organization | ( | ) | const [inline] |
Returns organization associated with the asn.
void AsnCreateCmd::insert_contact | ( | const string & | type, | |
const string & | identification | |||
) | [inline] |
Inserts a contact in the map of other contacts.
type | contact type | |
identification | contact identification |
void AsnCreateCmd::reset | ( | ) | [inline] |
void AsnCreateCmd::set_asn | ( | const int | asn | ) | [inline] |
Sets asn.
asn | autonomous system number |
void AsnCreateCmd::set_organization | ( | const string & | organization | ) | [inline] |
Sets organization.
organization | organization to be associated with the asn |