29 #ifndef GUM_PRM_O3PRM_BNREADER_H 30 #define GUM_PRM_O3PRM_BNREADER_H 53 template <
typename GUM_SCALAR >
57 const std::string& filename,
58 const std::string& entityName =
"",
59 const std::string& classPath =
"");
111 const std::string& type,
112 const std::string& name,
113 const std::string& toRemove =
"");
124 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 129 #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)
Errors container (at least) for parser.
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.
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.
gum is the global namespace for all aGrUM entities
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)
Headers for the O3prmReader class.
Definition of abstract classes for file input manipulation of Bayesian Networks.
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.
Inline implementation of O3prmReader.
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