ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
FPTracker::ValueSetter Class Reference
Collaboration diagram for FPTracker::ValueSetter:

Public Member Functions

 ValueSetter ()
 
template<class T >
bool setValue (T &val, const std::string &s)
 
bool errors () const
 
std::vector< std::string >::const_iterator begin () const
 
std::vector< std::string >::const_iterator end () const
 

Private Attributes

bool m_errors
 
std::vector< std::string > m_notConverted
 

Detailed Description

Definition at line 17 of file readConfigData.cxx.

Constructor & Destructor Documentation

◆ ValueSetter()

FPTracker::ValueSetter::ValueSetter ( )
inline

Definition at line 19 of file readConfigData.cxx.

19 :m_errors(false){}

Member Function Documentation

◆ begin()

std::vector<std::string>::const_iterator FPTracker::ValueSetter::begin ( ) const
inline

Definition at line 42 of file readConfigData.cxx.

43  {
44  return m_notConverted.begin();
45  }

◆ end()

std::vector<std::string>::const_iterator FPTracker::ValueSetter::end ( ) const
inline

Definition at line 48 of file readConfigData.cxx.

49  {
50  return m_notConverted.end();
51  }

◆ errors()

bool FPTracker::ValueSetter::errors ( ) const
inline

Definition at line 40 of file readConfigData.cxx.

40 {return m_errors;}

◆ setValue()

template<class T >
bool FPTracker::ValueSetter::setValue ( T &  val,
const std::string &  s 
)
inline

Definition at line 22 of file readConfigData.cxx.

23  {
24  bool ok = true;
25  try
26  {
27  val = boost::lexical_cast<T>(s);
28  }
29  catch (boost::bad_lexical_cast& )
30  {
31  m_errors = true;
32  ok = false;
33 
34  m_notConverted.push_back(s);
35  }
36 
37  return ok;
38  }

Member Data Documentation

◆ m_errors

bool FPTracker::ValueSetter::m_errors
private

Definition at line 54 of file readConfigData.cxx.

◆ m_notConverted

std::vector< std::string > FPTracker::ValueSetter::m_notConverted
private

Definition at line 55 of file readConfigData.cxx.


The documentation for this class was generated from the following file:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
FPTracker::ValueSetter::m_notConverted
std::vector< std::string > m_notConverted
Definition: readConfigData.cxx:55
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
FPTracker::ValueSetter::m_errors
bool m_errors
Definition: readConfigData.cxx:54