SheppObjSet Class Reference

shepp specific objects information setting class More...

#include <SheppObjSet.H>

List of all members.

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 keyData (KeyData &dnskey, vector< string > &words, string &error_msg)
 fills a KeyData 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

Detailed Description

shepp specific objects information setting class


Member Function Documentation

static int SheppObjSet::authInfo ( AuthInfo auth,
vector< string > &  words 
) [inline, static]

fills an AuthInfo based on input command line

Parameters:
auth reference to an AuthInfo object to be set
words vector with command-line arguments
Returns:
0 if ok, -1 otherwise

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_transfer(), cmd_contact_update(), cmd_domain_create(), cmd_domain_info(), cmd_domain_transfer(), 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

Parameters:
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
Returns:
0 if ok, -1 otherwise

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

Parameters:
disclose reference to a Disclose object to be set
word input string with disclose info
Returns:
0 if ok, -1 otherwise

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

Parameters:
ds reference to a DSInfo object to be set
words vector with command-line arguments
Returns:
0 if ok, -1 otherwise

References keyData(), 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::keyData ( KeyData dnskey,
vector< string > &  words,
string &  error_msg 
) [inline, static]

fills a KeyData based on input command line

Parameters:
dnskey reference to a KeyData object to be set
words vector with command-line arguments
Returns:
0 if ok, -1 otherwise

Referenced by cmd_domain_create(), cmd_domain_update(), and dsInfo().

static int SheppObjSet::nameServer ( NameServer ns,
vector< string > &  words 
) [inline, static]

fills a NameServer based on input command line

Parameters:
ns reference to a NameServer object to be set
words vector with command-line arguments
Returns:
0 if ok, -1 otherwise

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

Parameters:
phone reference to a Phone object to be set
words vector with command-line arguments
Returns:
0 if ok, -1 otherwise

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

Parameters:
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
Returns:
0 if ok, -1 otherwise

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

Parameters:
status reference to a Status object to be set
words vector with command-line arguments
Returns:
0 if ok, -1 otherwise

References SheppStrUtil::quote_gathering(), and SheppStrUtil::split().

Referenced by cmd_domain_update().


The documentation for this class was generated from the following file:
Generated on Wed Aug 11 16:56:45 2010 for libepp_nicbr by  doxygen 1.6.3