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 // ----------------------------------------------------------------------------
19  property_( std::move(property) ) {}
21  property_(std::move(property)), position_(pos) {}
23  client_(std::move(client)), property_(std::move(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:
39 };
40 // ============================================================================
41 } /* Gaudi */ } /* Parsers */
42 // ============================================================================
43 #endif // JOBOPTIONSVC_PROPERTY_NAME_H_
const std::string & property() const
Definition: PropertyName.h:29
T empty(T...args)
std::string ToString() const
const Position & position() const
Definition: PropertyName.h:30
PropertyName(std::string client, std::string property, Position pos)
Definition: PropertyName.h:24
STL namespace.
const std::string & client() const
Definition: PropertyName.h:28
STL class.
std::string FullName() const
Definition: PropertyName.cpp:6
PropertyName(std::string property, const Position &pos)
Definition: PropertyName.h:20
PropertyName(std::string client, std::string property)
Definition: PropertyName.h:22
bool Exists() const
Definition: Position.h:22
PropertyName(std::string property)
Definition: PropertyName.h:18
Helper functions to set/get the application return code.
Definition: __init__.py:1