Scarab  v1.5.3
Project 8 C++ Utility Library
Public Member Functions | List of all members
authentication Class Reference

#include <authentication.hh>

Inheritance diagram for authentication:
Inheritance graph

Public Member Functions

 authentication (const std::string &a_auth_file, bool a_is_in_user_home=true)
 
 ~authentication ()
 
bool load (const std::string &a_auth_file, bool a_is_in_user_home=true)
 
 mv_referrable (std::string, auth_filename)
 
 mv_accessible_noset (bool, is_loaded)
 
- Public Member Functions inherited from param_node
 param_node ()
 
 param_node (const param_node &orig)
 
virtual ~param_node ()
 
param_nodeoperator= (const param_node &rhs)
 
virtual paramclone () const
 
virtual bool is_null () const
 
virtual bool is_node () const
 
virtual bool has_subset (const param &a_subset) const
 
unsigned size () const
 
bool empty () const
 
bool has (const std::string &a_name) const
 
unsigned count (const std::string &a_name) const
 
std::string get_value (const std::string &a_name) const
 
template<typename XValType >
XValType get_value (const std::string &a_name) const
 
std::string get_value (const std::string &a_name, const std::string &a_default) const
 
std::string get_value (const std::string &a_name, const char *a_default) const
 
template<typename XValType >
XValType get_value (const std::string &a_name, XValType a_default) const
 
const paramat (const std::string &a_name) const
 
paramat (const std::string &a_name)
 
const param_valuevalue_at (const std::string &a_name) const
 
param_valuevalue_at (const std::string &a_name)
 
const param_arrayarray_at (const std::string &a_name) const
 
param_arrayarray_at (const std::string &a_name)
 
const param_nodenode_at (const std::string &a_name) const
 
param_nodenode_at (const std::string &a_name)
 
const paramoperator[] (const std::string &a_name) const
 
paramoperator[] (const std::string &a_name)
 
bool add (const std::string &a_name, const param &a_value)
 creates a copy of a_value More...
 
bool add (const std::string &a_name, param *a_value_ptr)
 directly adds (without copying) a_value_ptr More...
 
void replace (const std::string &a_name, const param &a_value)
 creates a copy of a_value More...
 
void replace (const std::string &a_name, param *a_value_ptr)
 directly adds (without copying) a_value_ptr More...
 
void merge (const param_node &a_object)
 
void erase (const std::string &a_name)
 
paramremove (const std::string &a_name)
 
void clear ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
virtual std::string to_string () const
 
- Public Member Functions inherited from param
 param ()
 
 param (const param &orig)
 
virtual ~param ()
 
virtual bool is_value () const
 
virtual bool is_array () const
 
param_valueas_value ()
 
param_arrayas_array ()
 
param_nodeas_node ()
 
const param_valueas_value () const
 
const param_arrayas_array () const
 
const param_nodeas_node () const
 
const param_valueoperator() () const
 Assumes that the parameter is a value, and returns a reference to itself. More...
 
param_valueoperator() ()
 Assumes that the parameter is a value, and returns a reference to itself. More...
 
const paramoperator[] (unsigned a_index) const
 
paramoperator[] (unsigned a_index)
 
const paramoperator[] (const std::string &a_name) const
 
paramoperator[] (const std::string &a_name)
 

Additional Inherited Members

- Public Types inherited from param_node
typedef std::map< std::string, param * > contents
 
typedef contents::iterator iterator
 
typedef contents::const_iterator const_iterator
 
typedef contents::value_type contents_type
 
- Static Public Attributes inherited from param
static unsigned s_indent_level = 0
 
- Protected Attributes inherited from param_node
contents f_contents
 

Detailed Description

Definition at line 18 of file authentication.hh.

Constructor & Destructor Documentation

authentication ( const std::string &  a_auth_file,
bool  a_is_in_user_home = true 
)

Definition at line 34 of file authentication.cc.

Definition at line 42 of file authentication.cc.

Member Function Documentation

bool load ( const std::string &  a_auth_file,
bool  a_is_in_user_home = true 
)

Definition at line 46 of file authentication.cc.

mv_accessible_noset ( bool  ,
is_loaded   
)
mv_referrable ( std::string  ,
auth_filename   
)

The documentation for this class was generated from the following files: