CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ora::Properties Class Reference

#include <Properties.h>

Public Member Functions

bool getFlag (const std::string &flagName) const
 
std::string getProperty (const std::string &propertyName) const
 
bool hasProperty (const std::string &propertyName) const
 
 Properties ()
 
bool removeFlag (const std::string &flagName)
 
bool removeProperty (const std::string &propertyName)
 
void setFlag (const std::string &flagName)
 
bool setProperty (const std::string &propertyName, const std::string &propertyValue)
 
virtual ~Properties ()
 

Private Attributes

std::set< std::string > m_flags
 
std::map< std::string,
std::string > 
m_properties
 

Detailed Description

Definition at line 11 of file Properties.h.

Constructor & Destructor Documentation

ora::Properties::Properties ( )

Definition at line 3 of file Properties.cc.

4 }
std::map< std::string, std::string > m_properties
Definition: Properties.h:27
std::set< std::string > m_flags
Definition: Properties.h:28
ora::Properties::~Properties ( )
virtual

Definition at line 6 of file Properties.cc.

6  {
7 }

Member Function Documentation

bool ora::Properties::getFlag ( const std::string &  flagName) const

Definition at line 36 of file Properties.cc.

References run_regression::ret.

Referenced by ora::getContainerFromSession().

36  {
37  bool ret = false;
38  if(m_flags.find(flagName)!=m_flags.end()){
39  ret = true;
40  }
41  return ret;
42 }
std::set< std::string > m_flags
Definition: Properties.h:28
std::string ora::Properties::getProperty ( const std::string &  propertyName) const

Definition at line 27 of file Properties.cc.

References run_regression::ret.

27  {
28  std::string ret("");
29  std::map<std::string,std::string>::const_iterator iP = m_properties.find(propertyName);
30  if(iP!=m_properties.end()){
31  ret = iP->second;
32  }
33  return ret;
34 }
std::map< std::string, std::string > m_properties
Definition: Properties.h:27
bool ora::Properties::hasProperty ( const std::string &  propertyName) const

Definition at line 23 of file Properties.cc.

23  {
24  return (m_properties.find(propertyName)!=m_properties.end());
25 }
std::map< std::string, std::string > m_properties
Definition: Properties.h:27
bool ora::Properties::removeFlag ( const std::string &  flagName)

Definition at line 53 of file Properties.cc.

References run_regression::ret.

53  {
54  bool ret = false;
55  if(m_flags.find(flagName)!=m_flags.end()){
56  ret = true;
57  m_flags.erase(flagName);
58  }
59  return ret;
60 }
std::set< std::string > m_flags
Definition: Properties.h:28
bool ora::Properties::removeProperty ( const std::string &  propertyName)

Definition at line 44 of file Properties.cc.

References run_regression::ret.

Referenced by Vispa.Views.PropertyView.PropertyView::append().

44  {
45  bool ret = false;
46  if(m_properties.find(propertyName)!=m_properties.end()){
47  ret = true;
48  m_properties.erase(propertyName);
49  }
50  return ret;
51 }
std::map< std::string, std::string > m_properties
Definition: Properties.h:27
void ora::Properties::setFlag ( const std::string &  flagName)

Definition at line 19 of file Properties.cc.

19  {
20  m_flags.insert(flagName);
21 }
std::set< std::string > m_flags
Definition: Properties.h:28
bool ora::Properties::setProperty ( const std::string &  propertyName,
const std::string &  propertyValue 
)

Definition at line 9 of file Properties.cc.

References run_regression::ret.

9  {
10  bool ret = false;
11  if(m_properties.find(propertyName)!=m_properties.end()){
12  ret = true;
13  m_properties.erase(propertyName);
14  }
15  m_properties.insert(std::make_pair(propertyName,propertyValue));
16  return ret;
17 }
std::map< std::string, std::string > m_properties
Definition: Properties.h:27

Member Data Documentation

std::set<std::string> ora::Properties::m_flags
private

Definition at line 28 of file Properties.h.

std::map<std::string,std::string> ora::Properties::m_properties
private

Definition at line 27 of file Properties.h.