![]() |
aGrUM
0.16.0
|
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 69 of file O3prmReader.h.
INLINE gum::prm::o3prm::O3prmReader< GUM_SCALAR >::O3prmReader | ( | ) |
Definition at line 141 of file O3prmReader_tpl.h.
|
explicit |
Definition at line 148 of file O3prmReader_tpl.h.
INLINE gum::prm::o3prm::O3prmReader< GUM_SCALAR >::O3prmReader | ( | const O3prmReader< GUM_SCALAR > & | src | ) |
Definition at line 154 of file O3prmReader_tpl.h.
INLINE gum::prm::o3prm::O3prmReader< GUM_SCALAR >::O3prmReader | ( | O3prmReader< GUM_SCALAR > && | src | ) |
Definition at line 163 of file O3prmReader_tpl.h.
INLINE gum::prm::o3prm::O3prmReader< GUM_SCALAR >::~O3prmReader | ( | ) |
Definition at line 172 of file O3prmReader_tpl.h.
|
private |
Definition at line 38 of file O3prmReader_tpl.h.
|
private |
Definition at line 413 of file O3prmReader_tpl.h.
|
private |
Definition at line 370 of file O3prmReader_tpl.h.
|
private |
Definition at line 353 of file O3prmReader_tpl.h.
|
private |
Definition at line 111 of file O3prmReader_tpl.h.
|
private |
Definition at line 422 of file O3prmReader_tpl.h.
|
private |
Definition at line 120 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 223 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::interpretFile(), and gum::O3prmBNReader< GUM_SCALAR >::proceed().
INLINE Idx gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errCol | ( | Idx | i | ) | const |
col of ith error or warning
Definition at line 241 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::prm().
INLINE std::wstring gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errFilename | ( | Idx | i | ) | const |
filename of ith error or warning
Definition at line 246 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::prm().
INLINE bool gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errIsError | ( | Idx | i | ) | const |
type of ith error or warning
Definition at line 251 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::prm().
INLINE Idx gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errLine | ( | Idx | i | ) | const |
line of ith error or warning
Definition at line 236 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::prm().
INLINE std::string gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errMsg | ( | Idx | i | ) | const |
message of ith error or warning
Definition at line 256 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::prm().
INLINE Size gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errors | ( | ) | const |
publishing Errors API
Definition at line 285 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::import(), and gum::prm::o3prm::O3prmReader< double >::prm().
INLINE const ErrorsContainer & gum::prm::o3prm::O3prmReader< GUM_SCALAR >::errorsContainer | ( | ) | const |
publishing Errors API
Definition at line 296 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::import(), gum::prm::o3prm::O3prmReader< double >::prm(), and gum::O3prmBNReader< GUM_SCALAR >::proceed().
INLINE O3prmReader< GUM_SCALAR > & gum::prm::o3prm::O3prmReader< GUM_SCALAR >::operator= | ( | const O3prmReader< GUM_SCALAR > & | src | ) |
Definition at line 178 of file O3prmReader_tpl.h.
INLINE O3prmReader< GUM_SCALAR > & gum::prm::o3prm::O3prmReader< GUM_SCALAR >::operator= | ( | O3prmReader< GUM_SCALAR > && | src | ) |
Definition at line 190 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 343 of file O3prmReader_tpl.h.
|
inline |
Definition at line 110 of file O3prmReader.h.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::interpretFile(), gum::prm::o3prmr::O3prmrInterpreter::prm(), gum::O3prmBNReader< GUM_SCALAR >::proceed(), and gum::prm::o3prmr::O3prmrInterpreter::~O3prmrInterpreter().
|
inline |
Definition at line 111 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 308 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::import(), and gum::O3prmBNReader< GUM_SCALAR >::proceed().
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 301 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 201 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 262 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::prm().
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 270 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::prm().
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 280 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::prm().
INLINE Size gum::prm::o3prm::O3prmReader< GUM_SCALAR >::warnings | ( | ) | const |
Definition at line 290 of file O3prmReader_tpl.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::prm().
|
private |
Definition at line 148 of file O3prmReader.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::operator=().
|
private |
Definition at line 152 of file O3prmReader.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::operator=().
|
private |
Definition at line 149 of file O3prmReader.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::operator=().
|
private |
Definition at line 147 of file O3prmReader.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::operator=().
|
private |
Definition at line 146 of file O3prmReader.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::operator=(), and gum::prm::o3prm::O3prmReader< double >::prm().