nis-util
1.0.D108
|
#include <group.h>
Data Structures | |
class | record |
Public Types | |
typedef boost::shared_ptr < colon_group > | pointer |
Public Member Functions | |
virtual | ~colon_group () |
record::pointer | get (void) |
Static Public Member Functions | |
static pointer | create (const rcstring &filename) |
Protected Member Functions | |
colon_group (const rcstring &filename) | |
Private Member Functions | |
bool | validate (const record::pointer &rp) |
colon_group () | |
colon_group (const colon_group &rhs) | |
colon_group & | operator= (const colon_group &rhs) |
Private Attributes | |
long | last_gid |
The colon_group class is used to represent the parse state of a group formatted file.
typedef boost::shared_ptr<colon_group> colon_group::pointer |
Reimplemented in colon_group_slurp_check, and colon_group_slurp.
colon_group::~colon_group | ( | ) | [virtual] |
colon_group::colon_group | ( | const rcstring & | filename | ) | [protected] |
colon_group::colon_group | ( | ) | [private] |
The default constructor. Do not use.
colon_group::colon_group | ( | const colon_group & | rhs | ) | [private] |
The copy constructor. Do not use.
colon_group::pointer colon_group::create | ( | const rcstring & | filename | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
filename | The name of the file to be read. |
Reimplemented in colon_group_slurp.
colon_group& colon_group::operator= | ( | const colon_group & | rhs | ) | [private] |
The assignment operator. Do not use.
bool colon_group::validate | ( | const record::pointer & | rp | ) | [private] |
The validate method is used to check that group entries are valid, within themselves. (Validation between fields, or between files, is not done.) Returns true for valid lines, and false otherwise.
rp | pointer to record to be validated |
long colon_group::last_gid [private] |