nis-util
1.0.D108
|
#include <automap.h>
The space_automap class is used to represent the processing required to parse and pretty print automap files.
typedef std::map<rcstring, space_automap_row::pointer> space_automap::content_t [private] |
typedef std::list<mount_point> space_automap::keys_t |
typedef boost::shared_ptr<space_automap> space_automap::pointer |
space_automap::~space_automap | ( | ) | [virtual] |
The destructor.
Definition at line 26 of file automap.cc.
space_automap::space_automap | ( | const rcstring & | filename | ) | [private] |
The constructor. It is private on purpose, use the create class method instead.
Definition at line 31 of file automap.cc.
space_automap::space_automap | ( | ) | [private] |
The default constructor. Do not use.
space_automap::space_automap | ( | const space_automap & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
space_automap::pointer space_automap::create | ( | const rcstring & | filename | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
Definition at line 41 of file automap.cc.
bool space_automap::empty | ( | void | ) | const |
The empty method is used to determoien whether or not this map is empty.
Definition at line 184 of file automap.cc.
space_automap::keys_t space_automap::get_keys | ( | void | ) | const |
The get_keys method is used to obtain a list of the keys of all the rows of this map.
Definition at line 192 of file automap.cc.
static void space_automap::grammar_debug | ( | void | ) | [static] |
The grammar_debug class method is used to turn on grammar (yacc) debug messages. Usually only of interest to developers.
void space_automap::insert | ( | const space_automap_row::pointer & | rp | ) |
The insert method is used to append another row to the ordered list of rows in the file.
Definition at line 81 of file automap.cc.
void space_automap::insert_sub | ( | const space_automap_row::pointer & | rp | ) |
The insert_sub method is used to append another row to the ordered list of (sub)rows in the file.
Definition at line 119 of file automap.cc.
space_automap& space_automap::operator= | ( | const space_automap & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
void space_automap::parse | ( | space_automap_functor & | saver, |
const space_hosts_slurp * | hosts | ||
) | [private] |
void space_automap::print | ( | void | ) | const |
The print method is used to print a representation of this map on the standard output.
Definition at line 157 of file automap.cc.
void space_automap::print | ( | const rcstring & | filename | ) | const |
The print method is used to pretty print a representation of this automap file.
filename | The name of the file to write to, or "-" for the standard output. |
Definition at line 165 of file automap.cc.
space_automap_row::pointer space_automap::query | ( | const rcstring & | key | ) | const |
The query method is used to examine this map, and return the row corresponding to the given key.
key | the key for this row |
Definition at line 108 of file automap.cc.
space_automap_row::pointer space_automap::query_sub | ( | const rcstring & | key | ) | const |
The query_sub method is used to examine this map, with its sub-mount-points fully expanded, and return the row corresponding to the given key. Mostly used for error checking.
key | the key for this row |
Definition at line 146 of file automap.cc.
void space_automap::read_and_process | ( | void | ) |
The read method is used to read the given file and retain each of the rows.
Definition at line 48 of file automap.cc.
void space_automap::read_and_process | ( | space_automap_functor & | func, |
const space_hosts_slurp * | hosts | ||
) |
The read method is used to read the given file and retain each of the rows, passing each row to the fiven functor for checking or processing.
Definition at line 56 of file automap.cc.
void space_automap::walk | ( | space_automap_functor & | func | ) |
The walk method is used to visit the given functor on every row in the map.
func | The functor to be presented with each row in turn. |
Definition at line 66 of file automap.cc.
int space_automap::yak_lex | ( | void | ) |
The yac_lex method is used to convert the results of space::lex into whet yacc (bison) expects. It would not be public except for the need for yacc (bison) to call it.
content_t space_automap::content [private] |
content_t space_automap::content_sub [private] |