← Documentation
ADS-IDAC Engine 5.0.0
KBElement.cpp
Go to the documentation of this file.
1// KBElement.cpp: implementation of the KBElement class.
2//
4
5#include "KBElement.h"
6#include <boost/serialization/export.hpp>
7#include <boost/archive/binary_oarchive.hpp>
8#include <boost/archive/binary_iarchive.hpp>
9BOOST_CLASS_EXPORT_IMPLEMENT(KBElement)
10using namespace std;
11
13// Construction/Destruction
15
17{
18 info_name = "NONE";
19}
20
22{
23
24}
25void KBElement::setInfoName(string str){info_name = str;}
27void KBElement::readInfoFromFile(ifstream &fin){
28 fin >> info_name;
29}
31 info_name = _kbe.getInfoName();
32}
33void KBElement::saveKBElementToFile(ofstream &fout){
34 fout << info_name << '\n';
35}
37 fin >> info_name;
38}
40 bool matched = true;
41 if (info_name != _kbe.getInfoName()){
42 matched = false;
43 }
44 return matched;
45}
void readInfoFromFile(std::ifstream &)
Definition: KBElement.cpp:27
void setInfoName(std::string)
Definition: KBElement.cpp:25
void retrieveKBElementFromFile(std::ifstream &)
Definition: KBElement.cpp:36
virtual ~KBElement()
Definition: KBElement.cpp:21
std::string info_name
Definition: KBElement.h:18
bool checkIfIsIdenticalKBElement(KBElement &)
Definition: KBElement.cpp:39
void saveKBElementToFile(std::ofstream &)
Definition: KBElement.cpp:33
void copyKBElement(KBElement &)
Definition: KBElement.cpp:30
std::string getInfoName()
Definition: KBElement.cpp:26