Main Page
Namespaces
Classes
Files
File List
File Members
src
inference
model
SceneIdentifier.cpp
Go to the documentation of this file.
1
18
#include "
inference/model/SceneIdentifier.h
"
19
20
namespace
ProbabilisticSceneRecognition
{
21
22
SceneIdentifier::SceneIdentifier
()
23
{
24
}
25
26
SceneIdentifier::SceneIdentifier
(std::string pType, std::string pDescription)
27
:
mType
(pType)
28
,
mDescription
(pDescription)
29
{
30
}
31
32
SceneIdentifier::SceneIdentifier
(
const
SceneIdentifier
& pOther)
33
{
34
mType
= pOther.
mType
;
35
mDescription
= pOther.
mDescription
;
36
mPriori
= pOther.
mPriori
;
37
mLikelihood
= pOther.
mLikelihood
;
38
}
39
40
SceneIdentifier::~SceneIdentifier
()
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
}
ProbabilisticSceneRecognition::SceneIdentifier::mType
std::string mType
Definition:
SceneIdentifier.h:81
ProbabilisticSceneRecognition::SceneIdentifier::SceneIdentifier
SceneIdentifier()
Definition:
SceneIdentifier.cpp:22
ProbabilisticSceneRecognition::SceneIdentifier::~SceneIdentifier
~SceneIdentifier()
Definition:
SceneIdentifier.cpp:40
ProbabilisticSceneRecognition::SceneIdentifier::save
void save(boost::property_tree::ptree &pPt)
Definition:
SceneIdentifier.cpp:51
ProbabilisticSceneRecognition::SceneIdentifier::mDescription
std::string mDescription
Definition:
SceneIdentifier.h:86
ProbabilisticSceneRecognition::SceneIdentifier
Definition:
SceneIdentifier.h:34
ProbabilisticSceneRecognition::SceneIdentifier::mLikelihood
double mLikelihood
Definition:
SceneIdentifier.h:96
ProbabilisticSceneRecognition
Definition:
MappedProbabilityTable.h:33
ProbabilisticSceneRecognition::SceneIdentifier::mPriori
double mPriori
Definition:
SceneIdentifier.h:91
ProbabilisticSceneRecognition::SceneIdentifier::load
void load(boost::property_tree::ptree &pPt)
Definition:
SceneIdentifier.cpp:44
SceneIdentifier.h
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54