nis-util
1.0.D108
|
#include <networks.h>
Public Types | |
typedef boost::shared_ptr< record > | pointer |
typedef std::list< rcstring > | aliases_t |
Public Member Functions | |
~record () | |
const source_location & | get_source_location (void) const |
rcstring | get_name (void) const |
rcstring | get_number (void) const |
unsigned long | get_number_binary (void) const |
const aliases_t & | get_aliases (void) const |
rcstring | representation (void) const |
Static Public Member Functions | |
static pointer | create (const source_location &locn, const rcstring &name, const rcstring &number, const aliases_t &aliases) |
Private Member Functions | |
record (const source_location &locn, const rcstring &name, const rcstring &number, const aliases_t &aliases) | |
record () | |
record (const record &rhs) | |
record & | operator= (const record &rhs) |
Private Attributes | |
source_location | locn |
rcstring | name |
rcstring | number |
aliases_t | aliases |
The record class is used to represent one record from the networks file. Values of this type are returned by the get method.
Definition at line 55 of file networks.h.
typedef std::list<rcstring> space_networks::record::aliases_t |
Definition at line 65 of file networks.h.
typedef boost::shared_ptr<record> space_networks::record::pointer |
Definition at line 58 of file networks.h.
The destructor.
Definition at line 244 of file networks.cc.
space_networks::record::record | ( | const source_location & | locn, |
const rcstring & | name, | ||
const rcstring & | number, | ||
const aliases_t & | aliases | ||
) | [private] |
The constructor. It is private on purpose, use the create class method instead.
Definition at line 249 of file networks.cc.
space_networks::record::record | ( | ) | [private] |
space_networks::record::record | ( | const record & | rhs | ) | [private] |
space_networks::record::pointer space_networks::record::create | ( | const source_location & | locn, |
const rcstring & | name, | ||
const rcstring & | number, | ||
const aliases_t & | aliases | ||
) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
Definition at line 264 of file networks.cc.
const aliases_t& space_networks::record::get_aliases | ( | void | ) | const [inline] |
Definition at line 78 of file networks.h.
rcstring space_networks::record::get_name | ( | void | ) | const [inline] |
Definition at line 75 of file networks.h.
rcstring space_networks::record::get_number | ( | void | ) | const [inline] |
Definition at line 76 of file networks.h.
unsigned long space_networks::record::get_number_binary | ( | void | ) | const |
Definition at line 273 of file networks.cc.
const source_location& space_networks::record::get_source_location | ( | void | ) | const [inline] |
Definition at line 74 of file networks.h.
rcstring space_networks::record::representation | ( | void | ) | const |
The representation method is used to generate a string which represents the networks entry, suitable for inserting into an networks file or networks map. (There is no newline on the end.)
Definition at line 281 of file networks.cc.
aliases_t space_networks::record::aliases [private] |
Definition at line 99 of file networks.h.
source_location space_networks::record::locn [private] |
Definition at line 96 of file networks.h.
rcstring space_networks::record::name [private] |
Definition at line 97 of file networks.h.
rcstring space_networks::record::number [private] |
Definition at line 98 of file networks.h.