genericIO
jsonGenericIO.h
1 #ifndef JSON_IO_H
2 #define JSON_IO_H 1
3 #include "genericIO.h"
4 #include "jsonGenericFile.h"
5 #include "jsonParamObj.h"
6 #include <fstream> // std::ifstream
7 namespace SEP {
8 class jsonGenericIO : public genericIO {
9 public:
11  ;
12 }
13 jsonGenericIO( const int argc, char **argv){
14  initJsonPars(argc,argv);
15 }
16 void initJsonPars( const int argc, char **argv);
17 std::shared_ptr<Json::Value> getArgs(){
18  return jsonArgs;
19 }
20 virtual std::shared_ptr<genericRegFile> getRegFileTag(const std::string &tag, const std::string& name,const usage_code usage);
21 virtual std::shared_ptr<genericIrregFile> getIrregFileTag(const std::string &tag,const std::string &name, const usage_code usage);
22 virtual void close();
23 virtual std::shared_ptr<paramObj> getParamObj();
24 
25 
26 private:
27 std::ifstream inps;
28 std::shared_ptr<Json::Value> jsonArgs;
29 bool _init;
30 
31 
32 
33 };
34 }
35 #endif
Definition: jsonGenericIO.h:8
Definition: genericIO.h:10
Definition: axis.h:8