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

EPP Launch Phase Class. More...

#include <Launch.H>

Public Types

enum  Value {
  NONE, SUNRISE, LANDRUSH, CLAIMS,
  OPEN, CUSTOM
}
 Possible phase values.
 

Public Member Functions

 LaunchPhase ()
 Default constructor.
 
 LaunchPhase (const Value phase)
 Constructor used when the phase is not CUSTOM. More...
 
 LaunchPhase (const string &name)
 Constructor used when the phase is CUSTOM. More...
 
void set_phase (const Value phase)
 Sets the launch phase. More...
 
Value get_phase () const
 Returns the launch phase. More...
 
void set_name (const string &name)
 Sets the launch phase name when the phase is CUSTOM. More...
 
string get_name () const
 Returns the launch phase name when the phase is CUSTOM. More...
 
void reset ()
 Reset object attributes.
 

Static Public Member Functions

static string toStr (const Value value)
 Convert phase to text format. More...
 
static Value fromStr (const string &value)
 Convert text phase to value. More...
 

Detailed Description

EPP Launch Phase Class.

Constructor & Destructor Documentation

LaunchPhase::LaunchPhase ( const Value  phase)
inline

Constructor used when the phase is not CUSTOM.

Parameters
phaselaunch phase
LaunchPhase::LaunchPhase ( const string &  name)
inline

Constructor used when the phase is CUSTOM.

Parameters
namename of the custom phase

Member Function Documentation

static Value LaunchPhase::fromStr ( const string &  value)
inlinestatic

Convert text phase to value.

Parameters
valuetext phase
Returns
value representation of the phase

Referenced by cmd_domain_check(), cmd_domain_create(), cmd_domain_delete(), cmd_domain_info(), and cmd_domain_update().

string LaunchPhase::get_name ( ) const
inline

Returns the launch phase name when the phase is CUSTOM.

Returns
launch phase name when the phase is CUSTOM
Value LaunchPhase::get_phase ( ) const
inline
void LaunchPhase::set_name ( const string &  name)
inline

Sets the launch phase name when the phase is CUSTOM.

Parameters
namelaunch phase name when the phase is CUSTOM

Referenced by cmd_domain_check(), cmd_domain_create(), cmd_domain_delete(), cmd_domain_info(), and cmd_domain_update().

void LaunchPhase::set_phase ( const Value  phase)
inline

Sets the launch phase.

Parameters
phaselaunch phase

Referenced by cmd_domain_check(), cmd_domain_create(), cmd_domain_delete(), cmd_domain_info(), and cmd_domain_update().

static string LaunchPhase::toStr ( const Value  value)
inlinestatic

Convert phase to text format.

Parameters
valuephase value
Returns
text representation of the phase

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