#include <SheppObjSet.H>
Static Public Member Functions | |
static int | authInfo (AuthInfo &auth, vector< string > &words) |
fills an AuthInfo based on input command line | |
static int | nameServer (NameServer &ns, vector< string > &words) |
fills a NameServer based on input command line | |
static int | status (DomainUpdateCmd::Status &st, vector< string > &words) |
fills a Status based on input command line | |
static int | dsInfo (DSInfo &ds, vector< string > &words, string &error_msg) |
fills a DSInfo based on input command line | |
static int | postalInfo (PostalInfo &postal, vector< string > &words, string &error_msg, bool relaxed) |
fills a PostalInfo based on input command line | |
static int | phone (CommonData::Phone &phone, vector< string > &words) |
fills a Phone based on input command line | |
static int | disclose (CommonData::Disclose &disclose, string word) |
fills a Disclose based on input command line | |
static int | contacts (map< string, string, less< string > > &contacts, string args, string &error_msg) |
fills a map of contacts based on input command line |
static int SheppObjSet::authInfo | ( | AuthInfo & | auth, | |
vector< string > & | words | |||
) | [inline, static] |
fills an AuthInfo based on input command line
auth | reference to an AuthInfo object to be set | |
words | vector with command-line arguments |
References AuthInfo::set_pw(), AuthInfo::set_roid(), and SheppStrUtil::split().
Referenced by cmd_brorg_create(), cmd_brorg_info(), cmd_brorg_update(), cmd_contact_create(), cmd_contact_info(), cmd_contact_update(), cmd_domain_create(), cmd_domain_info(), and cmd_domain_update().
static int SheppObjSet::contacts | ( | map< string, string, less< string > > & | contacts, | |
string | args, | |||
string & | error_msg | |||
) | [inline, static] |
fills a map of contacts based on input command line
contacts | reference to the map of contacts to be filled | |
args | input string with contacts info | |
error_msg | string to hold error msg on return -1 |
References SheppStrUtil::split().
Referenced by cmd_brorg_create(), and cmd_brorg_update().
static int SheppObjSet::disclose | ( | CommonData::Disclose & | disclose, | |
string | word | |||
) | [inline, static] |
fills a Disclose based on input command line
disclose | reference to a Disclose object to be set | |
word | input string with disclose info |
References SheppStrUtil::split().
Referenced by cmd_brorg_create(), cmd_brorg_update(), cmd_contact_create(), and cmd_contact_update().
static int SheppObjSet::dsInfo | ( | DSInfo & | ds, | |
vector< string > & | words, | |||
string & | error_msg | |||
) | [inline, static] |
fills a DSInfo based on input command line
ds | reference to a DSInfo object to be set | |
words | vector with command-line arguments |
References DSInfo::set_algo(), DSInfo::set_digest(), DSInfo::set_digest_type(), DSInfo::set_key_data(), DSInfo::set_key_tag(), and DSInfo::set_max_sig_life().
Referenced by cmd_domain_create(), and cmd_domain_update().
static int SheppObjSet::nameServer | ( | NameServer & | ns, | |
vector< string > & | words | |||
) | [inline, static] |
fills a NameServer based on input command line
ns | reference to a NameServer object to be set | |
words | vector with command-line arguments |
References SheppStrUtil::split().
Referenced by cmd_domain_create(), and cmd_domain_update().
static int SheppObjSet::phone | ( | CommonData::Phone & | phone, | |
vector< string > & | words | |||
) | [inline, static] |
fills a Phone based on input command line
phone | reference to a Phone object to be set | |
words | vector with command-line arguments |
References SheppStrUtil::split().
Referenced by cmd_brorg_create(), cmd_brorg_update(), cmd_contact_create(), and cmd_contact_update().
static int SheppObjSet::postalInfo | ( | PostalInfo & | postal, | |
vector< string > & | words, | |||
string & | error_msg, | |||
bool | relaxed | |||
) | [inline, static] |
fills a PostalInfo based on input command line
postal | reference to a PostalInfo object to be set | |
words | vector with command-line arguments | |
error_msg | string to hold error msg on return -1 | |
relaxed | true for update, false for create |
References SheppStrUtil::quote_gathering().
Referenced by cmd_brorg_create(), cmd_brorg_update(), cmd_contact_create(), and cmd_contact_update().
static int SheppObjSet::status | ( | DomainUpdateCmd::Status & | st, | |
vector< string > & | words | |||
) | [inline, static] |
fills a Status based on input command line
status | reference to a Status object to be set | |
words | vector with command-line arguments |
References SheppStrUtil::quote_gathering(), and SheppStrUtil::split().
Referenced by cmd_domain_update().