32 #ifndef GUM_PRM_O3PRM_BNREADER_H 33 #define GUM_PRM_O3PRM_BNREADER_H 56 template <
typename GUM_SCALAR >
60 const std::string& filename,
61 const std::string& entityName =
"",
62 const std::string& classPath =
"");
114 const std::string& type,
115 const std::string& name,
116 const std::string& toRemove =
"");
127 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 132 #endif // GUM_PRM_O3PRM_BNREADER_H Idx errCol(Idx i)
col of ith error or warning
Class representing a Bayesian Network.
Idx errLine(Idx i)
publishing Errors API
std::string msg
The gum::ParseError message.
static std::string __getEntityName(const std::string &filename)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
static std::string __getVariableName(const std::string &path, const std::string &type, const std::string &name, const std::string &toRemove="")
Size error_count
Number of errors detected.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
O3prmBNReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename, const std::string &entityName="", const std::string &classPath="")
void syntheticResults(std::ostream &o) const
Print errors on output stream.
void elegantErrorsAndWarnings(std::ostream &o) const
Print errors on output stream.
This class is used contain and manipulate gum::ParseError.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
Pure virtual class for reading a BN from a file.
void __generateBN(prm::PRMSystem< GUM_SCALAR > &system)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool is_error
If false, this gum::ParseError is a warning.
Idx line
The line of this gum::ParseError.
std::string errMsg(Idx i)
message of ith error or warning
A PRMSystem is a container of PRMInstance and describe a relational skeleton.
static std::string __getInstanceName(const std::string &classname)
void elegantErrors(std::ostream &o) const
Print errors on output stream.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errors
Size Idx
Type for indexes.
Size errors()
publishing Errors API
ParseError error(Idx i) const
Returns the i-th error.
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Idx column
The column of this gum::ParseError, default is 0.
bool errIsError(Idx i)
type of ith error or warning
Read an O3PRM and transform the gum::prm::PRMSystem into gum::BayesNet.
Size proceed()
parse the file
BayesNet< GUM_SCALAR > * __bn