48#ifndef GUM_ID_GUM_READER_H
49#define GUM_ID_GUM_READER_H
68 template < GUM_Numeric GUM_SCALAR >
100 template <
typename JsonType >
110#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Definition of abstract classes for import of Influence Diagram from a file.
ErrorsContainer()
Class Constructor.
Reads an InfluenceDiagram from a GUM (json) file.
void showElegantErrorsAndWarnings(std::ostream &stream=std::cerr) const
InfluenceDiagram< GUM_SCALAR > * _id_
GumIDReader(InfluenceDiagram< GUM_SCALAR > *id, std::string_view filename, bool binary=false)
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 _proceedFromJson_(const JsonType &content)
Size proceed() override
Parses the file and populates the InfluenceDiagram.
GumIDReader(InfluenceDiagram< GUM_SCALAR > *id)
Constructor for string-based parsing only (no file). Use exclusively with proceedFromString(); callin...
IDReader(InfluenceDiagram< GUM_SCALAR > *infdiag, std::string_view filePath)
Constructor A reader is created to reading a defined file.
Class representing an Influence Diagram.
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