DDS  ver. 3.6
TopoUtils.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 
6 #ifndef __DDS__TopoUtils__
7 #define __DDS__TopoUtils__
8 
9 // DDS
10 #include "TopoElement.h"
11 #include "TopoProperty.h"
12 #include "TopoRequirement.h"
13 #include "TopoTrigger.h"
14 // STD
15 #include <string>
16 // BOOST
17 #include <boost/property_tree/ptree.hpp>
18 
19 namespace dds
20 {
21  namespace topology_api
22  {
23  std::string TopoTypeToUseTag(CTopoBase::EType _type);
24 
25  CTopoBase::EType UseTagToTopoType(const std::string& _name);
26 
27  std::string TopoTypeToDeclTag(CTopoBase::EType _type);
28 
29  CTopoBase::EType DeclTagToTopoType(const std::string& _name);
30 
31  CTopoProperty::EAccessType TagToPropertyAccessType(const std::string& _name);
32 
34 
35  CTopoProperty::EScopeType TagToPropertyScopeType(const std::string& _name);
36 
38 
39  CTopoRequirement::EType TagToRequirementType(const std::string& _name);
40 
42 
43  CTopoTrigger::EConditionType TagToConditionType(const std::string& _name);
44 
46 
47  CTopoTrigger::EActionType TagToActionType(const std::string& _name);
48 
49  std::string ActionTypeToTag(CTopoTrigger::EActionType _type);
50 
58  const boost::property_tree::ptree& FindElementInPropertyTree(CTopoBase::EType _type,
59  const std::string& _name,
60  const boost::property_tree::ptree& _pt);
61 
62  } // namespace topology_api
63 } // namespace dds
64 #endif /* defined(__DDS__TopoUtils__) */
std::string ConditionTypeToTag(CTopoTrigger::EConditionType _type)
Definition: TopoUtils.cpp:189
EType
Definition: TopoRequirement.h:23
string TopoTypeToDeclTag(CTopoBase::EType _type)
Definition: TopoUtils.cpp:57
std::string PropertyScopeTypeToTag(CTopoProperty::EScopeType _type)
Definition: TopoUtils.cpp:137
CTopoTrigger::EActionType TagToActionType(const std::string &_name)
Definition: TopoUtils.cpp:200
CTopoBase::EType DeclTagToTopoType(const string &_name)
Definition: TopoUtils.cpp:80
CTopoProperty::EScopeType TagToPropertyScopeType(const std::string &_name)
Definition: TopoUtils.cpp:127
CTopoProperty::EAccessType TagToPropertyAccessType(const string &_name)
Definition: TopoUtils.cpp:100
EAccessType
Definition: TopoProperty.h:25
std::string RequirementTypeToTag(CTopoRequirement::EType _type)
Definition: TopoUtils.cpp:164
EActionType
Definition: TopoTrigger.h:29
EConditionType
Definition: TopoTrigger.h:23
EScopeType
Definition: TopoProperty.h:32
EType
Definition: TopoBase.h:23
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
std::string PropertyAccessTypeToTag(CTopoProperty::EAccessType _type)
Definition: TopoUtils.cpp:112
std::string ActionTypeToTag(CTopoTrigger::EActionType _type)
Definition: TopoUtils.cpp:208
CTopoTrigger::EConditionType TagToConditionType(const std::string &_name)
Definition: TopoUtils.cpp:181
CTopoRequirement::EType TagToRequirementType(const string &_name)
Definition: TopoUtils.cpp:150
string TopoTypeToUseTag(CTopoBase::EType _type)
Definition: TopoUtils.cpp:18
const ptree & FindElementInPropertyTree(CTopoBase::EType _type, const string &_name, const ptree &_pt)
Definition: TopoUtils.cpp:219
CTopoBase::EType UseTagToTopoType(const string &_name)
Definition: TopoUtils.cpp:39