Property.cpp
Go to the documentation of this file.
1 // $Id:$
2 // Copyright 2011 alexander.mazurov@gmail.com
3 // ============================================================================
4 // Include files
5 // ============================================================================
6 #include "Property.h"
7 
8 #include "PropertyName.h"
9 #include "PropertyValue.h"
10 #include "Utils.h"
11 // ============================================================================
12 // STD & STL:
13 // ============================================================================
14 // ============================================================================
15 // Boost:
16 // ============================================================================
17 #include <boost/format.hpp>
18 // ============================================================================
19 // Namespace aliases:
20 namespace gp = Gaudi::Parsers;
21 namespace gpu = Gaudi::Parsers::Utils;
22 // ============================================================================
23 const gp::Position& gp::Property::DefinedPosition() const {
24  return property_name_.position();
25 }
26 // ============================================================================
27 const gp::Position& gp::Property::ValuePosition() const {
28  return property_value_.position();
29 }
30 // ============================================================================
31 std::string gp::Property::ClientName() const {
32  return property_name_.client();
33 }
34 // ============================================================================
35 std::string gp::Property::NameInClient() const {
36  return property_name_.property();
37 }
38 // ============================================================================
39 std::string gp::Property::FullName() const {
40  return property_name_.ToString();
41 }
42 // ============================================================================
43 std::string gp::Property::ValueAsString() const {
44  return gpu::replaceEnvironments(property_value_.ToString());
45 }
46 // ============================================================================
47 std::string gp::Property::ToString() const {
48  return FullName()+" = "+ValueAsString();
49 }
50 // ============================================================================
51 bool gp::Property::IsSimple() const {
52  return property_value_.IsSimple();
53 }
54 // ============================================================================
55 bool gp::Property::IsVector() const {
56  return property_value_.IsVector();
57 }
58 // ============================================================================
59 bool gp::Property::IsMap() const {
60  return property_value_.IsMap();
61 }
62 // ============================================================================
std::string replaceEnvironments(const std::string &input)
Definition: Utils.cpp:26