nis-util
1.0.D108
|
#include <slurp.h>
Public Types | |
typedef boost::shared_ptr < colon_group_slurp > | pointer |
Public Member Functions | |
virtual | ~colon_group_slurp () |
virtual void | read_and_process (void) |
record::pointer | query_by_name (const rcstring &name) const |
record::pointer | query_by_gid (const rcstring &gid) const |
record::pointer | query_by_gid (int gid) const |
Static Public Member Functions | |
static pointer | create (const rcstring &filename) |
Protected Member Functions | |
colon_group_slurp (const rcstring &filename) | |
virtual bool | process (const record::pointer &rp) |
Private Types | |
typedef std::map< rcstring, record::pointer > | by_name_t |
typedef std::map< rcstring, record::pointer > | by_gid_t |
Private Member Functions | |
colon_group_slurp () | |
colon_group_slurp (const colon_group_slurp &) | |
colon_group_slurp & | operator= (const colon_group_slurp &) |
Private Attributes | |
by_name_t | by_name |
by_name_t | by_gid |
The colon_group_slurp class is used to represent the contents of the group file, indexed by name and gid.
typedef std::map<rcstring, record::pointer> colon_group_slurp::by_gid_t [private] |
typedef std::map<rcstring, record::pointer> colon_group_slurp::by_name_t [private] |
typedef boost::shared_ptr<colon_group_slurp> colon_group_slurp::pointer |
Reimplemented from colon_group.
Reimplemented in colon_group_slurp_check.
colon_group_slurp::~colon_group_slurp | ( | ) | [virtual] |
colon_group_slurp::colon_group_slurp | ( | const rcstring & | filename | ) | [protected] |
colon_group_slurp::colon_group_slurp | ( | ) | [private] |
The default constructor. Do not use.
colon_group_slurp::colon_group_slurp | ( | const colon_group_slurp & | ) | [private] |
The copy constructor. Do not use.
colon_group_slurp::pointer colon_group_slurp::create | ( | const rcstring & | filename | ) | [static] |
The create class method is used to create new dynamically allocated instance of this class.
filename | The name of the file to be read. |
Reimplemented from colon_group.
colon_group_slurp& colon_group_slurp::operator= | ( | const colon_group_slurp & | ) | [private] |
The assignment operator. Do not use.
bool colon_group_slurp::process | ( | const record::pointer & | rp | ) | [protected, virtual] |
The process method is used to process each record as it is read in by the read_and_process method.
Reimplemented in colon_group_slurp_check.
colon_group::record::pointer colon_group_slurp::query_by_gid | ( | const rcstring & | gid | ) | const |
colon_group::record::pointer colon_group_slurp::query_by_gid | ( | int | gid | ) | const |
colon_group::record::pointer colon_group_slurp::query_by_name | ( | const rcstring & | name | ) | const |
The query_by_name method is used to look up the group file by group name (after read_and_process has been called).
name | The group name to search for |
void colon_group_slurp::read_and_process | ( | void | ) | [virtual] |
by_name_t colon_group_slurp::by_gid [private] |
by_name_t colon_group_slurp::by_name [private] |