archive_path_element Class Reference

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>

List of all members.

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_typetype (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_elementoperator= (const archive_path_element &a_class)
 Assignment.
archive_path_elementoperator= (const element_type a_enum)
 Assignment.
archive_path_elementoperator= (const std::string &a_str)
 Assignment.

Private Attributes

element_type m_type
std::string m_literal


Detailed Description

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.


Member Enumeration Documentation

enum archive_path_element::element_type
 

Enumeration values:
jobname 
groupname 
hostname 
pathname 
permutation 
literal 

Definition at line 26 of file rconfig.h.


Constructor & Destructor Documentation

archive_path_element::archive_path_element  ) 
 

C'tor.

Definition at line 29 of file rconfig.cc.

References clear().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Member Function Documentation

void archive_path_element::assign const std::string &  a_str  ) 
 

Assign a literal.

Definition at line 82 of file rconfig.cc.

References assign(), ERROR, groupname, hostname, jobname, literal, m_literal, m_type, pathname, permutation, str(), and TRY_nomem.

Here is the call graph for this function:

void archive_path_element::assign const element_type a_enum  ) 
 

Assign any type except literal.

Definition at line 71 of file rconfig.cc.

References literal, m_literal, and m_type.

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

const std::string archive_path_element::str void   )  const
 

Construct a string of the current value.

Definition at line 157 of file rconfig.cc.

References groupname, hostname, jobname, m_literal, m_type, pathname, permutation, TRY_nomem, and value().

Referenced by assign().

Here is the call graph for this function:

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().


Member Data Documentation

std::string archive_path_element::m_literal [private]
 

Definition at line 56 of file rconfig.h.

Referenced by assign(), clear(), str(), and value().

element_type archive_path_element::m_type [private]
 

Definition at line 55 of file rconfig.h.

Referenced by assign(), clear(), str(), and type().


The documentation for this class was generated from the following files:
Generated on Fri Jun 23 16:55:06 2006 for rvm by  doxygen 1.4.2