libepp_nicbr
Static Public Member Functions | List of all members
SheppObjSet Class Reference

shepp specific objects information setting class More...

#include <SheppObjSet.H>

Static Public Member Functions

static int parse_iprange (const string &input, IpRange &ipRange)
 reads an IpRange object from args More...
 
static int authInfo (AuthInfo &auth, vector< string > &words)
 fills an AuthInfo based on input command line More...
 
static int nameServer (NameServer &ns, vector< string > &words)
 fills a NameServer based on input command line More...
 
static int status (DomainUpdateCmd::Status &st, vector< string > &words)
 fills a Status based on input command line More...
 
static int status (DefRegUpdateCmd::Status &st, vector< string > &words)
 fills a Status based on input command line More...
 
static int dsInfo (DSInfo &ds, vector< string > &words, string &error_msg)
 fills a DSInfo based on input command line More...
 
static int dsInfo (ReverseDSInfo &ds, vector< string > &words, string &error_msg)
 fills a ReverseDSInfo based on input command line More...
 
static int keyData (KeyData &dnskey, vector< string > &words, string &error_msg)
 fills a KeyData based on input command line More...
 
static int postalInfo (PostalInfo &postal, vector< string > &words, string &error_msg, bool relaxed)
 fills a PostalInfo based on input command line More...
 
static int phone (CommonData::Phone &phone, vector< string > &words)
 fills a Phone based on input command line More...
 
static int disclose (CommonData::Disclose &disclose, string word)
 fills a Disclose based on input command line More...
 
static int contacts (map< string, string, less< string > > &contacts, string args, string &error_msg)
 fills a map of contacts based on input command line More...
 
static int claimsNotice (ClaimsNotice &notice, vector< string > &words, string &error)
 Fill a claims notice object. More...
 
static int rgpRestore (vector< string > &words, RGPRestore &rgp_restore, string &error_msg)
 fill a registry grace period structure More...
 

Detailed Description

shepp specific objects information setting class

Member Function Documentation

static int SheppObjSet::authInfo ( AuthInfo auth,
vector< string > &  words 
)
inlinestatic
static int SheppObjSet::claimsNotice ( ClaimsNotice notice,
vector< string > &  words,
string &  error 
)
inlinestatic

Fill a claims notice object.

Parameters
noticeObject to be filled
wordsparameters
errorMsgError message, if any
Returns
0 if ok, -1 otherwise

References ClaimsNotice::set_acceptedDate(), ClaimsNotice::set_id(), and ClaimsNotice::set_notAfter().

Referenced by cmd_domain_create().

static int SheppObjSet::contacts ( map< string, string, less< string > > &  contacts,
string  args,
string &  error_msg 
)
inlinestatic

fills a map of contacts based on input command line

Parameters
contactsreference to the map of contacts to be filled
argsinput string with contacts info
error_msgstring 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 
)
inlinestatic

fills a Disclose based on input command line

Parameters
disclosereference to a Disclose object to be set
wordinput 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 
)
inlinestatic

fills a DSInfo based on input command line

Parameters
dsreference to a DSInfo object to be set
wordsvector 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(), cmd_domain_update(), cmd_ipnetwork_create(), and cmd_ipnetwork_update().

static int SheppObjSet::dsInfo ( ReverseDSInfo ds,
vector< string > &  words,
string &  error_msg 
)
inlinestatic

fills a ReverseDSInfo based on input command line

Parameters
dsreference to a ReverseDSInfo object to be set
wordsvector with command-line arguments
Returns
0 if ok, -1 otherwise

References parse_iprange(), ReverseDSInfo::set_algo(), ReverseDSInfo::set_digest(), ReverseDSInfo::set_digest_type(), ReverseDSInfo::set_ipRange(), and ReverseDSInfo::set_key_tag().

static int SheppObjSet::keyData ( KeyData dnskey,
vector< string > &  words,
string &  error_msg 
)
inlinestatic

fills a KeyData based on input command line

Parameters
dnskeyreference to a KeyData object to be set
wordsvector 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 
)
inlinestatic

fills a NameServer based on input command line

Parameters
nsreference to a NameServer object to be set
wordsvector 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::parse_iprange ( const string &  input,
IpRange ipRange 
)
inlinestatic

reads an IpRange object from args

Parameters
inputIP range command-line param
ipRangeIpRange object to be filled
Returns
0 if ok, -1 ortherwise

References SheppStrUtil::split().

Referenced by cmd_ipnetwork_check(), cmd_ipnetwork_create(), cmd_ipnetwork_info(), cmd_ipnetwork_update(), and dsInfo().

static int SheppObjSet::phone ( CommonData::Phone phone,
vector< string > &  words 
)
inlinestatic

fills a Phone based on input command line

Parameters
phonereference to a Phone object to be set
wordsvector 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 
)
inlinestatic

fills a PostalInfo based on input command line

Parameters
postalreference to a PostalInfo object to be set
wordsvector with command-line arguments
error_msgstring to hold error msg on return -1
relaxedtrue 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::rgpRestore ( vector< string > &  words,
RGPRestore rgp_restore,
string &  error_msg 
)
inlinestatic

fill a registry grace period structure

Parameters
wordsRGP command-line params
rgp_restoreRGP object to be filled
error_msgWhen the funciton returns -1, the error will be stored here
Returns
0 if ok, -1 otherwise

References RGPRestore::get_operation(), RGPRestore::get_report(), SheppStrUtil::quote_gathering(), RGPReport::set_del_time(), RGPRestore::set_operation(), RGPReport::set_other(), RGPReport::set_post_data(), RGPReport::set_pre_data(), RGPRestore::set_report(), RGPReport::set_res_reason(), RGPReport::set_res_time(), RGPReport::set_statement1(), and RGPReport::set_statement2().

Referenced by cmd_domain_update().

static int SheppObjSet::status ( DomainUpdateCmd::Status st,
vector< string > &  words 
)
inlinestatic

fills a Status based on input command line

Parameters
statusreference to a Status object to be set
wordsvector with command-line arguments
Returns
0 if ok, -1 otherwise

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

Referenced by cmd_def_reg_update(), cmd_domain_update(), and status().

static int SheppObjSet::status ( DefRegUpdateCmd::Status st,
vector< string > &  words 
)
inlinestatic

fills a Status based on input command line

Parameters
statusreference to a Status object to be set
wordsvector with command-line arguments
Returns
0 if ok, -1 otherwise

References SheppStrUtil::quote_gathering(), DefRegUpdateCmd::Status::set_lang(), DefRegUpdateCmd::Status::set_msg(), DefRegUpdateCmd::Status::set_status(), SheppStrUtil::split(), and status().


The documentation for this class was generated from the following file: