|
nis-util
1.0.D108
|
#include <string.h>
Public Member Functions | |
| virtual | ~configuration_item_string () |
| configuration_item_string & | operator= (const configuration_item_string &rhs) |
Static Public Member Functions | |
| static pointer | create (const source_location &locn, level_t level, const rcstring &name, const rcstring &value) |
| static pointer | create (void) |
| static pointer | create (const configuration_item_string &rhs) |
Protected Member Functions | |
| rcstring | get_string_value (void) const |
| bool | get_bool_value (void) const |
| long | get_long_value (void) const |
Private Member Functions | |
| configuration_item_string (const source_location &locn, level_t level, const rcstring &name, const rcstring &value) | |
| configuration_item_string () | |
| configuration_item_string (const configuration_item_string &rhs) | |
Private Attributes | |
| rcstring | value |
The configuration_item_string class is used to represent a configuration item that has a string value.
| configuration_item_string::~configuration_item_string | ( | ) | [virtual] |
| configuration_item_string::configuration_item_string | ( | const source_location & | locn, |
| level_t | level, | ||
| const rcstring & | name, | ||
| const rcstring & | value | ||
| ) | [private] |
The constructor. It is private on purpose, use the create class method instead.
| locn | The source file location of this configuration item. |
| level | The precedence level of this configuration item. |
| name | The name of this configuration item. |
| value | The string value of this configuration item. |
| configuration_item_string::configuration_item_string | ( | ) | [private] |
The default constructor. Do not use.
| configuration_item_string::configuration_item_string | ( | const configuration_item_string & | rhs | ) | [private] |
The copy constructor. It is private on purpose, use a create method instead.
| rhs | The right hand side of the initialization. |
| configuration_item_string::pointer configuration_item_string::create | ( | const source_location & | locn, |
| level_t | level, | ||
| const rcstring & | name, | ||
| const rcstring & | value | ||
| ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
| locn | The source file location of this configuration item. |
| level | The precedence level of this configuration item. |
| name | The name of this configuration item. |
| value | The string value of this configuration item. |
| static pointer configuration_item_string::create | ( | void | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
| static pointer configuration_item_string::create | ( | const configuration_item_string & | rhs | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
| rhs | The right hand side of the initialization. |
| bool configuration_item_string::get_bool_value | ( | void | ) | const [protected, virtual] |
The get_string_value method is used to obtain the value of this configuration item, as a boolean.
Implements configuration_item.
| long configuration_item_string::get_long_value | ( | void | ) | const [protected, virtual] |
The get_string_value method is used to obtain the value of this configuration item, as an integer.
Implements configuration_item.
| rcstring configuration_item_string::get_string_value | ( | void | ) | const [protected, virtual] |
The get_string_value method is used to obtain the value of this configuration item, as a string.
Implements configuration_item.
| configuration_item_string& configuration_item_string::operator= | ( | const configuration_item_string & | rhs | ) |
The assignment operator.
| rhs | The right hand side of the assignment. |
rcstring configuration_item_string::value [private] |
1.7.6.1