LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Classes | Namespaces | Macros | Functions
Policy.h File Reference
#include <string>
#include <vector>
#include <list>
#include <map>
#include <boost/shared_ptr.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include "lsst/daf/base/Citizen.h"
#include "lsst/daf/base/Persistable.h"
#include "lsst/daf/base/PropertySet.h"
#include "lsst/pex/policy/exceptions.h"

Go to the source code of this file.

Classes

class  lsst::pex::policy::Policy
 a container for holding hierarchical configuration data in memory. More...
 

Namespaces

 lsst
 Estimate image backgrounds.
 
 lsst::pex
 
 lsst::pex::policy
 

Macros

#define POL_GETSCALAR(name, type, vtype)
 
#define POL_GETLIST(name, type, vtype)
 
#define POL_ADD(name, value)
 

Functions

std::ostream & lsst::pex::policy::operator<< (std::ostream &os, const Policy &p)
 
template<>
std::string lsst::pex::policy::Policy::getValue< std::string > (const std::string &name) const
 
template<>
Policy::FilePtr lsst::pex::policy::Policy::getValue< Policy::FilePtr > (const std::string &name) const
 
template<>
Policy::ConstPtr lsst::pex::policy::Policy::getValue< Policy::ConstPtr > (const std::string &name) const
 
template<>
std::vector< std::string > lsst::pex::policy::Policy::getValueArray< std::string > (const std::string &name) const
 
template<>
Policy::FilePtrArray lsst::pex::policy::Policy::getValueArray< Policy::FilePtr > (const std::string &name) const
 
template<>
Policy::PolicyPtrArray lsst::pex::policy::Policy::getValueArray< Policy::Ptr > (const std::string &name) const
 
template<>
Policy::ConstPolicyPtrArray lsst::pex::policy::Policy::getValueArray< Policy::ConstPtr > (const std::string &name) const
 
template<>
Policy::ValueType lsst::pex::policy::Policy::getValueType< std::string > ()
 
template<>
Policy::ValueType lsst::pex::policy::Policy::getValueType< Policy::FilePtr > ()
 
template<>
Policy::ValueType lsst::pex::policy::Policy::getValueType< Policy::Ptr > ()
 
template<>
Policy::ValueType lsst::pex::policy::Policy::getValueType< Policy::ConstPtr > ()
 
template<>
void lsst::pex::policy::Policy::setValue< std::string > (const std::string &name, const std::string &value)
 
template<>
void lsst::pex::policy::Policy::setValue< Policy::Ptr > (const std::string &name, const Policy::Ptr &value)
 
template<>
void lsst::pex::policy::Policy::setValue< Policy::FilePtr > (const std::string &name, const Policy::FilePtr &value)
 
template<>
void lsst::pex::policy::Policy::addValue< std::string > (const std::string &name, const std::string &value)
 
template<>
void lsst::pex::policy::Policy::addValue< Policy::Ptr > (const std::string &name, const Policy::Ptr &value)
 
template<>
void lsst::pex::policy::Policy::addValue< Policy::FilePtr > (const std::string &name, const Policy::FilePtr &value)
 

Macro Definition Documentation

#define POL_ADD (   name,
  value 
)
Value:
try { _data->add(name, value); } \
catch(lsst::pex::exceptions::TypeError&) { \
throw LSST_EXCEPT(TypeError, name, getTypeName(name)); \
}
table::Key< std::string > name
Definition: ApCorrMap.cc:71
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46

Definition at line 1069 of file Policy.h.

#define POL_GETLIST (   name,
  type,
  vtype 
)
Value:
try { \
return _data->getArray<type>(name); \
} catch (lsst::pex::exceptions::NotFoundError&) { \
throw LSST_EXCEPT(NameNotFound, name); \
} catch (lsst::pex::exceptions::TypeError&) { \
throw LSST_EXCEPT(TypeError, name, std::string(typeName[vtype])); \
} catch (boost::bad_any_cast&) { \
throw LSST_EXCEPT(TypeError, name, std::string(typeName[vtype])); \
}
table::Key< std::string > name
Definition: ApCorrMap.cc:71
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46

Definition at line 63 of file Policy.h.

#define POL_GETSCALAR (   name,
  type,
  vtype 
)
Value:
try { \
return _data->get<type>(name); \
} catch (lsst::pex::exceptions::NotFoundError&) { \
throw LSST_EXCEPT(NameNotFound, name); \
} catch (lsst::pex::exceptions::TypeError&) { \
throw LSST_EXCEPT(TypeError, name, std::string(typeName[vtype])); \
} catch (boost::bad_any_cast&) { \
throw LSST_EXCEPT(TypeError, name, std::string(typeName[vtype])); \
}
table::Key< std::string > name
Definition: ApCorrMap.cc:71
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46

Definition at line 52 of file Policy.h.