42#ifndef GUM_BN_GUM_READER_H
43#define GUM_BN_GUM_READER_H
56 template < GUM_Numeric GUM_SCALAR >
70 GumBNReader(BayesNet< GUM_SCALAR >* bn, std::string_view filename,
bool binary =
false);
96 template < typename JsonType >
106#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Definition of abstract classes for file input manipulation of Bayesian networks.
BNReader(BayesNet< GUM_SCALAR > *bn, std::string_view filename)
Constructor A reader is defined for reading a defined file.
Class representing a Bayesian network.
ErrorsContainer()
Class Constructor.
void showErrorCounts(std::ostream &stream=std::cerr) const
Size proceedFromString(std::string_view content)
Parse a jgum JSON string directly (no file I/O).
Size proceed() final
Parse the file given at construction.
GumBNReader(BayesNet< GUM_SCALAR > *bn)
Constructor for string-based parsing only (no file). Use exclusively with proceedFromString(); callin...
Size _proceedFromJson_(const JsonType &content)
GumBNReader(BayesNet< GUM_SCALAR > *bn, std::string_view filename, bool binary=false)
Constructor A reader is defined for reading a defined file.
bool _binary_
If true, the input is in binary format, otherwise in text format.
void showElegantErrorsAndWarnings(std::ostream &stream=std::cerr) const
~GumBNReader() override
Default destructor.
BayesNet< GUM_SCALAR > * _bn_
Errors container (at least) for parser.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
gum is the global namespace for all aGrUM entities