35 lines
637 B
35 lines
637 B
#ifndef READTRAFILE_H_
|
|
#define READTRAFILE_H_
|
|
|
|
#include "src/storage/SquareSparseMatrix.h"
|
|
|
|
#include "src/parser/parser.h"
|
|
|
|
namespace mrmc {
|
|
namespace parser {
|
|
|
|
/*!
|
|
* @brief Load transition system from file and return initialized
|
|
* StaticSparseMatrix object.
|
|
*/
|
|
class TraParser : Parser
|
|
{
|
|
public:
|
|
TraParser(const char* filename);
|
|
|
|
mrmc::storage::SquareSparseMatrix<double>* getMatrix()
|
|
{
|
|
return this->matrix;
|
|
}
|
|
|
|
private:
|
|
mrmc::storage::SquareSparseMatrix<double>* matrix;
|
|
|
|
uint_fast32_t firstPass(char* buf, uint_fast32_t &maxnode);
|
|
|
|
};
|
|
|
|
} // namespace parser
|
|
} // namespace mrmc
|
|
|
|
#endif /* READTRAFILE_H_ */
|