51#ifndef GUM_PRM_O3PRM_BNREADER_H
52#define GUM_PRM_O3PRM_BNREADER_H
74 template < GUM_Numeric GUM_SCALAR >
78 const std::string& filename,
79 const std::string& entityName =
"",
80 const std::string& classPath =
"");
131 std::string_view type,
132 std::string_view name,
133 std::string_view 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, std::string_view 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
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
Size proceed() override
parse the file
static std::string _getInstanceName_(std::string_view classname)
static std::string _getVariableName_(std::string_view path, std::string_view type, std::string_view name, std::string_view toRemove="")
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
static std::string _getEntityName_(std::string_view filename)
~O3prmBNReader() override
bool errIsError(Idx i)
type of ith error or warning
void _generateBN_(prm::PRMSystem< GUM_SCALAR > &system)
BayesNet< GUM_SCALAR > * _bn_
std::string errMsg(Idx i)
message of ith error or warning
Idx errCol(Idx i)
col of ith error or warning
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