![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
This class read O3PRM files and creates the corresponding gum::prm::PRM. More...
#include <agrum/PRM/o3prm/O3prmReader.h>
Public Member Functions | |
O3prmReader () | |
O3prmReader (PRM< GUM_SCALAR > &prm) | |
O3prmReader (const O3prmReader &src) | |
O3prmReader (O3prmReader &&src) | |
~O3prmReader () | |
O3prmReader & | operator= (const O3prmReader &src) |
O3prmReader & | operator= (O3prmReader &&src) |
Size | readFile (const std::string &file, const std::string &module="") |
Read file and load its content using a PRMFactory. The package parameter set the file's content package. More... | |
Size | readString (const std::string &string) |
With readString method, you must set the current path to search from import yourself, using addClassPath. More... | |
void | parseStream (std::istream &input, std::ostream &output, std::string module="") |
void | setClassPath (const std::string &class_path) |
This methods defines the list of paths to look for o3prm files. More... | |
void | addClassPath (const std::string &class_path) |
Add a list of paths to look for o3prm files. More... | |
gum::prm::PRM< GUM_SCALAR > * | prm () |
const gum::prm::PRM< GUM_SCALAR > * | prm () const |
Size | errors () const |
publishing Errors API More... | |
Size | warnings () const |
of errorsMore... | |
const ErrorsContainer & | errorsContainer () const |
publishing Errors API More... | |
Idx | errLine (Idx i) const |
line of ith error or warning More... | |
Idx | errCol (Idx i) const |
col of ith error or warning More... | |
std::wstring | errFilename (Idx i) const |
filename of ith error or warning More... | |
bool | errIsError (Idx i) const |
type of ith error or warning More... | |
std::string | errMsg (Idx i) const |
message of ith error or warning More... | |
void | showElegantErrors (std::ostream &o=std::cerr) const |
send on std::cerr the list of errors More... | |
void | showElegantErrorsAndWarnings (std::ostream &o=std::cerr) const |
send on std::cerr the list of errors or warnings More... | |
void | showErrorCounts (std::ostream &o=std::cerr) const |
send on std::cerr the number of errors and the number of warnings More... | |
This class read O3PRM files and creates the corresponding gum::prm::PRM.
GUM_SCALAR | The scalar type to use with the gum::prm::PRM. |
Definition at line 68 of file O3prmReader.h.
INLINE gum::prm::o3prm::O3prmReader< GUM_SCALAR >::O3prmReader | ( | ) |
Definition at line 136 of file O3prmReader_tpl.h.
|
explicit |
Definition at line 142 of file O3prmReader_tpl.h.
INLINE gum::prm::o3prm::O3prmReader< GUM_SCALAR >::O3prmReader | ( | const O3prmReader< GUM_SCALAR > & | src | ) |
Definition at line 148 of file O3prmReader_tpl.h.
INLINE gum::prm::o3prm::O3prmReader< GUM_SCALAR >::O3prmReader | ( | O3prmReader< GUM_SCALAR > && | src | ) |
Definition at line 155 of file O3prmReader_tpl.h.
INLINE gum::prm::o3prm::O3prmReader< GUM_SCALAR >::~O3prmReader | ( | ) |
Definition at line 163 of file O3prmReader_tpl.h.
|
private |
Definition at line 36 of file O3prmReader_tpl.h.
|
private |
Definition at line 393 of file O3prmReader_tpl.h.
|
private |
Definition at line 351 of file O3prmReader_tpl.h.
|
private |
Definition at line 336 of file O3prmReader_tpl.h.
|
private |
Definition at line 108 of file O3prmReader_tpl.h.
|
private |
Definition at line 402 of file O3prmReader_tpl.h.
|
private |
Definition at line 115 of file O3prmReader_tpl.h.
void gum::prm::o3prm::O3prmReader< GUM_SCALAR >::addClassPath | ( | const std::string & | class_path | ) |
Add a list of paths to look for o3prm files.
Use / for path separator ! Even on Windows !
class_path | A semicolon separated list of paths. |
Definition at line 211 of file O3prmReader_tpl.h.
INLINE Idx gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errCol | ( | Idx | i | ) | const |
col of ith error or warning
Definition at line 229 of file O3prmReader_tpl.h.
INLINE std::wstring gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errFilename | ( | Idx | i | ) | const |
filename of ith error or warning
Definition at line 234 of file O3prmReader_tpl.h.
INLINE bool gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errIsError | ( | Idx | i | ) | const |
type of ith error or warning
Definition at line 239 of file O3prmReader_tpl.h.
INLINE Idx gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errLine | ( | Idx | i | ) | const |
INLINE std::string gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errMsg | ( | Idx | i | ) | const |
INLINE Size gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errors | ( | ) | const |
publishing Errors API
Definition at line 270 of file O3prmReader_tpl.h.
INLINE const ErrorsContainer & gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errorsContainer | ( | ) | const |
INLINE O3prmReader< GUM_SCALAR > & gum::prm::o3prm::O3prmReader< GUM_SCALAR >::operator= | ( | const O3prmReader< GUM_SCALAR > & | src | ) |
Definition at line 169 of file O3prmReader_tpl.h.
INLINE O3prmReader< GUM_SCALAR > & gum::prm::o3prm::O3prmReader< GUM_SCALAR >::operator= | ( | O3prmReader< GUM_SCALAR > && | src | ) |
Definition at line 180 of file O3prmReader_tpl.h.
INLINE void gum::prm::o3prm::O3prmReader< GUM_SCALAR >::parseStream | ( | std::istream & | input, |
std::ostream & | output, | ||
std::string | module = "" |
||
) |
Definition at line 327 of file O3prmReader_tpl.h.
|
inline |
Definition at line 107 of file O3prmReader.h.
|
inline |
Definition at line 108 of file O3prmReader.h.
INLINE Size gum::prm::o3prm::O3prmReader< GUM_SCALAR >::readFile | ( | const std::string & | file, |
const std::string & | module = "" |
||
) |
Read file and load its content using a PRMFactory. The package parameter set the file's content package.
Definition at line 292 of file O3prmReader_tpl.h.
INLINE Size gum::prm::o3prm::O3prmReader< GUM_SCALAR >::readString | ( | const std::string & | string | ) |
With readString method, you must set the current path to search from import yourself, using addClassPath.
Definition at line 285 of file O3prmReader_tpl.h.
void gum::prm::o3prm::O3prmReader< GUM_SCALAR >::setClassPath | ( | const std::string & | class_path | ) |
This methods defines the list of paths to look for o3prm files.
Use / for path separator ! Even on Windows !
class_path | A semicolon separated list of paths. |
Definition at line 191 of file O3prmReader_tpl.h.
INLINE void gum::prm::o3prm::O3prmReader< GUM_SCALAR >::showElegantErrors | ( | std::ostream & | o = std::cerr | ) | const |
send on std::cerr the list of errors
Definition at line 249 of file O3prmReader_tpl.h.
INLINE void gum::prm::o3prm::O3prmReader< GUM_SCALAR >::showElegantErrorsAndWarnings | ( | std::ostream & | o = std::cerr | ) | const |
send on std::cerr the list of errors or warnings
Definition at line 257 of file O3prmReader_tpl.h.
INLINE void gum::prm::o3prm::O3prmReader< GUM_SCALAR >::showErrorCounts | ( | std::ostream & | o = std::cerr | ) | const |
send on std::cerr the number of errors and the number of warnings
Definition at line 265 of file O3prmReader_tpl.h.
INLINE Size gum::prm::o3prm::O3prmReader< GUM_SCALAR >::warnings | ( | ) | const |
|
private |
Definition at line 145 of file O3prmReader.h.
|
private |
Definition at line 149 of file O3prmReader.h.
|
private |
Definition at line 146 of file O3prmReader.h.
|
private |
Definition at line 144 of file O3prmReader.h.
|
private |
Definition at line 143 of file O3prmReader.h.