51#ifndef GUM_PRM_O3PRM_BNREADER_H
52#define GUM_PRM_O3PRM_BNREADER_H
72 template <
typename GUM_SCALAR >
76 const std::string& filename,
77 const std::string& entityName =
"",
78 const std::string& classPath =
"");
112 _errors_.elegantErrorsAndWarnings(o);
131 const std::string& type,
132 const std::string& name,
133 const std::string& toRemove =
"");
144#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Definition of abstract classes for file input manipulation of Bayesian networks.
Inline implementation of O3prmReader.
Headers for the O3prmReader class.
BNReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename)
Constructor A reader is defined for reading a defined file.
This class is used contain and manipulate gum::ParseError.
Read an O3PRM and transform the gum::prm::PRMSystem into gum::BayesNet.
Size errors()
publishing Errors API
static std::string _getInstanceName_(const std::string &classname)
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
Idx errLine(Idx i)
publishing Errors API
O3prmBNReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename, const std::string &entityName="", const std::string &classPath="")
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errors
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
bool errIsError(Idx i)
type of ith error or warning
void _generateBN_(prm::PRMSystem< GUM_SCALAR > &system)
BayesNet< GUM_SCALAR > * _bn_
static std::string _getVariableName_(const std::string &path, const std::string &type, const std::string &name, const std::string &toRemove="")
std::string errMsg(Idx i)
message of ith error or warning
static std::string _getEntityName_(const std::string &filename)
Idx errCol(Idx i)
col of ith error or warning
Size proceed()
parse the file
A PRMSystem is a container of PRMInstance and describe a relational skeleton.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities