The Gaudi Framework
v26r1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Units.h
Go to the documentation of this file.
1
// $Id:$
2
#ifndef JOBOPTIONSVC_UNITS_H_
3
#define JOBOPTIONSVC_UNITS_H_
4
// ============================================================================
5
// Include files
6
// ============================================================================
7
// STD & STL:
8
// ============================================================================
9
#include <string>
10
#include <map>
11
// ============================================================================
12
#include "
Position.h
"
13
// ============================================================================
14
15
// ============================================================================
16
namespace
Gaudi
{
namespace
Parsers {
17
// ============================================================================
18
class
Units
{
19
public
:
20
typedef
std::map<std::string, std::pair<double, Position> >
Container
;
21
typedef
Container::mapped_type
ValueWithPosition
;
22
23
bool
Add
(
const
std::string& name,
double
value
);
24
bool
Add
(
const
std::string& name,
double
value
,
const
Position
& pos);
25
26
bool
Find
(
const
std::string& name,
ValueWithPosition
& result)
const
;
27
bool
Find
(
const
std::string& name,
double
& result)
const
;
28
std::string
ToString
()
const
;
29
private
:
30
Container
units_
;
31
};
32
33
// ============================================================================
34
}
/* Gaudi */
}
/* Parsers */
35
// ============================================================================
36
37
#endif
/* UNITS_H_ */
GaudiCoreSvc
src
JobOptionsSvc
Units.h
Generated on Mon Feb 16 2015 11:56:54 for The Gaudi Framework by
1.8.2