A configuration manager support class: Used to specify a single subdirectory in a path of subdirectory names for a unique path under the archive directory for each job. More...
#include <rconfig.h>
Public Types | |
enum | element_type { jobname, groupname, hostname, pathname, permutation, literal } |
Public Member Functions | |
void | clear (void) |
Reset to a default value. | |
archive_path_element () | |
C'tor. | |
archive_path_element (const archive_path_element &a_class) | |
C'tor. | |
archive_path_element (const element_type &a_enum) | |
C'tor. | |
archive_path_element (const std::string &a_str) | |
C'tor. | |
void | assign (const archive_path_element &a_class) |
Assign the value from another archive_path_element instance. | |
void | assign (const element_type &a_enum) |
Assign any type except literal. | |
void | assign (const std::string &a_str) |
Assign a literal. | |
const element_type & | type (void) const |
Retrieve the current type. | |
const std::string & | value (void) const |
Retrieve the current literal value. | |
const std::string | str (void) const |
Construct a string of the current value. | |
archive_path_element & | operator= (const archive_path_element &a_class) |
Assignment. | |
archive_path_element & | operator= (const element_type a_enum) |
Assignment. | |
archive_path_element & | operator= (const std::string &a_str) |
Assignment. | |
Private Attributes | |
element_type | m_type |
std::string | m_literal |
A configuration manager support class: Used to specify a single subdirectory in a path of subdirectory names for a unique path under the archive directory for each job.
Definition at line 23 of file rconfig.h.
archive_path_element::archive_path_element | ( | ) |
C'tor.
Definition at line 29 of file rconfig.cc.
References clear().
archive_path_element::archive_path_element | ( | const archive_path_element & | a_class | ) |
C'tor.
Definition at line 35 of file rconfig.cc.
References assign(), and clear().
archive_path_element::archive_path_element | ( | const element_type & | a_enum | ) |
C'tor.
Definition at line 43 of file rconfig.cc.
References assign(), and clear().
archive_path_element::archive_path_element | ( | const std::string & | a_str | ) |
C'tor.
Definition at line 52 of file rconfig.cc.
References assign(), and clear().
void archive_path_element::assign | ( | const std::string & | a_str | ) |
void archive_path_element::assign | ( | const element_type & | a_enum | ) |
Assign any type except literal.
Definition at line 71 of file rconfig.cc.
void archive_path_element::assign | ( | const archive_path_element & | a_class | ) |
Assign the value from another archive_path_element instance.
Definition at line 59 of file rconfig.cc.
References literal, str(), and type().
Referenced by archive_path_element(), assign(), operator=(), and archive_path::push_back().
void archive_path_element::clear | ( | void | ) |
Reset to a default value.
Definition at line 22 of file rconfig.cc.
References jobname, m_literal, and m_type.
Referenced by archive_path_element(), operator=(), and archive_path::push_back().
archive_path_element & archive_path_element::operator= | ( | const std::string & | a_str | ) |
Assignment.
Definition at line 214 of file rconfig.cc.
References assign(), and clear().
archive_path_element & archive_path_element::operator= | ( | const element_type | a_enum | ) |
Assignment.
Definition at line 203 of file rconfig.cc.
References assign(), and clear().
archive_path_element & archive_path_element::operator= | ( | const archive_path_element & | a_class | ) |
Assignment.
Definition at line 193 of file rconfig.cc.
References assign(), and clear().
const std::string archive_path_element::str | ( | void | ) | const |
const archive_path_element::element_type & archive_path_element::type | ( | void | ) | const |
Retrieve the current type.
Definition at line 145 of file rconfig.cc.
References m_type.
Referenced by assign().
const std::string & archive_path_element::value | ( | void | ) | const |
Retrieve the current literal value.
Definition at line 151 of file rconfig.cc.
References m_literal.
Referenced by str().
std::string archive_path_element::m_literal [private] |
element_type archive_path_element::m_type [private] |