SceneIdentifier.cpp
Go to the documentation of this file.
1 
19 
21 
23  {
24  }
25 
26  SceneIdentifier::SceneIdentifier(std::string pType, std::string pDescription)
27  : mType(pType)
28  , mDescription(pDescription)
29  {
30  }
31 
33  {
34  mType = pOther.mType;
35  mDescription = pOther.mDescription;
36  mPriori = pOther.mPriori;
37  mLikelihood = pOther.mLikelihood;
38  }
39 
41  {
42  }
43 
44  void SceneIdentifier::load(boost::property_tree::ptree& pPt)
45  {
46  mDescription = pPt.get<std::string>("<xmlattr>.name");
47  mType = pPt.get<std::string>("<xmlattr>.type");
48  mPriori = pPt.get<double>("<xmlattr>.priori");
49  }
50 
51  void SceneIdentifier::save(boost::property_tree::ptree& pPt)
52  {
53  pPt.add("<xmlattr>.name", mDescription);
54  pPt.add("<xmlattr>.type", mType);
55  pPt.add("<xmlattr>.priori", mPriori);
56  }
57 
58 }
void save(boost::property_tree::ptree &pPt)
void load(boost::property_tree::ptree &pPt)


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54