| The Gaudi Framework v28r2-patches (bc4ad17a)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

PropertyName.h
Go to the documentation of this file.
1 #ifndef JOBOPTIONSVC_PROPERTY_NAME_H_
2 #define JOBOPTIONSVC_PROPERTY_NAME_H_
3 // ============================================================================
4 // Includes:
5 // ============================================================================
6 // STD & STL:
7 // ============================================================================
8 #include <string>
9 #include "Position.h"
10 // ============================================================================
11 namespace Gaudi { namespace Parsers {
12 // ============================================================================
13 class Position;
14 // ============================================================================
15 class PropertyName final {
16 public:
17 // ----------------------------------------------------------------------------
18 explicit PropertyName(std::string property):
19 property_( std::move(property) ) {}
20 PropertyName(std::string property, const Position& pos):
21 property_(std::move(property)), position_(pos) {}
22 PropertyName(std::string client, std::string property):
23 client_(std::move(client)), property_(std::move(property)){}
24 PropertyName(std::string client, std::string property,
25 Position pos):
26 client_(std::move(client)), property_(std::move(property)) ,
27 position_(std::move(pos)) {}
28 const std::string& client() const { return client_;}
29 const std::string& property() const { return property_;}
30 const Position& position() const { return position_;}
31 std::string FullName() const;
32 std::string ToString() const;
33 bool HasClient() const { return !client_.empty();}
34 bool HasPosition() const { return position_.Exists();}
35 private:
36 std::string client_;
37 std::string property_;
38 Position position_;
39 };
40 // ============================================================================
41 } /* Gaudi */ } /* Parsers */
42 // ============================================================================
43 #endif // JOBOPTIONSVC_PROPERTY_NAME_H_
Gaudi::Parsers::PropertyName::property
const std::string & property() const
Definition: PropertyName.h:29
Gaudi::Parsers::PropertyName::position_
Position position_
Definition: PropertyName.h:38
std::string::empty
T empty(T...args)
Gaudi::Parsers::PropertyName::ToString
std::string ToString() const
Definition: PropertyName.cpp:10
Gaudi::Parsers::PropertyName::position
const Position & position() const
Definition: PropertyName.h:30
Gaudi::Parsers::PropertyName::HasPosition
bool HasPosition() const
Definition: PropertyName.h:34
Gaudi::Parsers::PropertyName::PropertyName
PropertyName(std::string client, std::string property, Position pos)
Definition: PropertyName.h:24
std
STL namespace.
Gaudi::Parsers::PropertyName::property_
std::string property_
Definition: PropertyName.h:37
Gaudi::Parsers::PropertyName::client
const std::string & client() const
Definition: PropertyName.h:28
std::string
STL class.
Gaudi::Parsers::PropertyName::FullName
std::string FullName() const
Definition: PropertyName.cpp:6
Gaudi::Parsers::Position
Definition: Position.h:12
Gaudi::Parsers::PropertyName
Definition: PropertyName.h:15
Gaudi::Parsers::PropertyName::PropertyName
PropertyName(std::string property, const Position &pos)
Definition: PropertyName.h:20
Gaudi::Parsers::PropertyName::PropertyName
PropertyName(std::string client, std::string property)
Definition: PropertyName.h:22
Gaudi::Parsers::Position::Exists
bool Exists() const
Definition: Position.h:22
Position.h
Gaudi::Parsers::PropertyName::PropertyName
PropertyName(std::string property)
Definition: PropertyName.h:18
Gaudi::Parsers::PropertyName::HasClient
bool HasClient() const
Definition: PropertyName.h:33
Gaudi::Parsers::PropertyName::client_
std::string client_
Definition: PropertyName.h:36
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1