JANA2
 All Classes Functions Variables Enumerations Friends
JParameter Class Reference
Collaboration diagram for JParameter:

Public Member Functions

template<typename T >
 JParameter (std::string name, T val)
 
template<typename T >
GetDefault (void)
 
bool GetHasDefault (void)
 
const std::string & GetName (void)
 
template<typename T >
GetValue (void)
 
template<typename T >
GetValue (T &val)
 
bool IsDefault (void)
 
template<typename T >
SetDefault (T val)
 
template<typename T >
SetValue (T val)
 
template<>
std::vector< std::string > GetDefault ()
 
template<>
std::vector< std::string > SetDefault (std::vector< std::string > default_value)
 Specialization for vector<string>
 
template<>
std::vector< std::string > SetValue (std::vector< std::string > val)
 

Protected Attributes

bool _has_default
 
std::string _name
 
std::string _val
 
std::string _default
 

Member Function Documentation

bool JParameter::GetHasDefault ( void  )

Returns whether this parameter has a default value assigned to it. The default is set by calling JParameterManager::SetDefaultParameter (preferred) or calling the SetDefault method of this class.


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