nis-util
1.0.D108
|
#include <direct.h>
Public Types | |
typedef boost::shared_ptr < space_auto_master_row_direct > | pointer |
Public Member Functions | |
virtual | ~space_auto_master_row_direct () |
keys_t | get_keys (void) const |
Static Public Member Functions | |
static pointer | create (const mount_point &key, const rcstring &filename, const rcstring &options) |
Protected Member Functions | |
void | print (const output_pointer &op) const |
void | load_map (const rcstring &filename, const space_hosts_slurp::pointer &hosts) |
rcstring | get_filename (void) const |
bool | has_associated_file (void) const |
Private Member Functions | |
space_auto_master_row_direct (const mount_point &key, const rcstring &filename, const rcstring &options) | |
space_auto_master_row_direct () | |
space_auto_master_row_direct (const space_auto_master_row_direct &rhs) | |
space_auto_master_row_direct & | operator= (const space_auto_master_row_direct &rhs) |
Private Attributes | |
rcstring | maptype |
rcstring | mapname |
space_automap::pointer | map |
The space_auto_master_row_direct class is used to represent a row associated with a direct (absolute) auto mount map.
typedef boost::shared_ptr<space_auto_master_row_direct> space_auto_master_row_direct::pointer |
Reimplemented from space_auto_master_row.
space_auto_master_row_direct::space_auto_master_row_direct | ( | const mount_point & | key, |
const rcstring & | filename, | ||
const rcstring & | options | ||
) | [private] |
The default constructor. It is private on purpose, use the create class method instead.
key | where to mount this map in the file system (It is also the database key for this row of the NIS map.) |
filename | The name of the file containing the map. |
options | any options associated with this row |
The default constructor. Do not use.
space_auto_master_row_direct::space_auto_master_row_direct | ( | const space_auto_master_row_direct & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
space_auto_master_row_direct::pointer space_auto_master_row_direct::create | ( | const mount_point & | key, |
const rcstring & | filename, | ||
const rcstring & | options | ||
) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
key | where to mount this map in the file system (It is also the database key for this row of the NIS map.) |
filename | The name of the file containing the map. |
options | any options associated with this row |
rcstring space_auto_master_row_direct::get_filename | ( | void | ) | const [protected, virtual] |
The get_filename method is used to obtain the filename of the text file containing the map.
Reimplemented from space_auto_master_row.
space_auto_master_row::keys_t space_auto_master_row_direct::get_keys | ( | void | ) | const [virtual] |
The get_keys method is used to obtain the complete list of keys in the associated map file. You must have called load_map previously, or undefined but undesirable things will happen.
Reimplemented from space_auto_master_row.
bool space_auto_master_row_direct::has_associated_file | ( | void | ) | const [protected, virtual] |
The has_associated_file method is used to determine whether or not a row has a map file associated with it.
Reimplemented from space_auto_master_row.
void space_auto_master_row_direct::load_map | ( | const rcstring & | filename, |
const space_hosts_slurp::pointer & | hosts | ||
) | [protected, virtual] |
The load_map method is used to load the map corresponding to this row of the table.
filename | The name of the file to read from. |
hosts | If non-NULL, the hosts map to validate against. |
Implements space_auto_master_row.
space_auto_master_row_direct& space_auto_master_row_direct::operator= | ( | const space_auto_master_row_direct & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
void space_auto_master_row_direct::print | ( | const output_pointer & | op | ) | const [protected, virtual] |
The print method is used to print a representation of the etc/auto.master row on the given output stream.
Implements space_auto_master_row.
The protocol instance variable is used to remember the proptocol used to obtain the map.
The second field is the map file to be consulted for this mount-point. This field is of the form maptype:mapname, where maptype is one of the supported map types (file, program, yp, nisplus, hesiod, userdir, ldap), and mapname is the name of the map.