|
nis-util
1.0.D108
|
#include <protocols.h>
Public Types | |
| typedef boost::shared_ptr< record > | pointer |
| typedef std::list< rcstring > | aliases_t |
Public Member Functions | |
| ~record () | |
| rcstring | representation (void) const |
| const source_location & | get_source_location (void) const |
| rcstring | get_name (void) const |
| rcstring | get_number (void) const |
| int | get_number_binary (void) const |
| const aliases_t & | get_aliases (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 protocols file. Values of this type are returned by the get method.
Definition at line 55 of file protocols.h.
| typedef std::list<rcstring> space_protocols::record::aliases_t |
Definition at line 62 of file protocols.h.
| typedef boost::shared_ptr<record> space_protocols::record::pointer |
Definition at line 58 of file protocols.h.
Definition at line 180 of file protocols.cc.
| space_protocols::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.
| locn | The source code location of this record. |
| name | The name of this protocol |
| number | The number of this protocol |
| aliases | The (possibly empty) set of aliases for this protocol. |
Definition at line 185 of file protocols.cc.
| space_protocols::record::record | ( | ) | [private] |
The default constructor. Do not use.
| space_protocols::record::record | ( | const record & | rhs | ) | [private] |
The copy constructor. Do not use.
| space_protocols::record::pointer space_protocols::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 instance of this class.
| locn | The source code location of this record. |
| name | The name of this protocol |
| number | The number of this protocol |
| aliases | The (possibly empty) set of aliases for this protocol. |
Definition at line 200 of file protocols.cc.
| const aliases_t& space_protocols::record::get_aliases | ( | void | ) | const [inline] |
Definition at line 92 of file protocols.h.
| rcstring space_protocols::record::get_name | ( | void | ) | const [inline] |
Definition at line 89 of file protocols.h.
| rcstring space_protocols::record::get_number | ( | void | ) | const [inline] |
Definition at line 90 of file protocols.h.
| int space_protocols::record::get_number_binary | ( | void | ) | const |
Definition at line 209 of file protocols.cc.
| const source_location& space_protocols::record::get_source_location | ( | void | ) | const [inline] |
Definition at line 88 of file protocols.h.
The assignment operator. Do not use.
| rcstring space_protocols::record::representation | ( | void | ) | const |
The representation method is used to generate a string which represents the ethers entry, suitable for inserting into a protocol file or protocol map. (There is no newline on the end.)
Definition at line 220 of file protocols.cc.
aliases_t space_protocols::record::aliases [private] |
The aliases instance variable is used to remember the (possibly empty) set of the alternative names for the protocol.
Definition at line 133 of file protocols.h.
source_location space_protocols::record::locn [private] |
The locn instance variable is used to remember the source file location of this record.
Definition at line 115 of file protocols.h.
rcstring space_protocols::record::name [private] |
The name instance variable is used to remember the of the protocol.
Definition at line 121 of file protocols.h.
rcstring space_protocols::record::number [private] |
The number instance variable is used to remember the number (0..255) of the protocol.
Definition at line 127 of file protocols.h.
1.7.6.1