Definition at line 47 of file inputGen.H.
|
| inputGen (jsoncons::json jsnStrm) |
|
virtual | ~inputGen () |
|
void | _set_key (const std::string &key) |
|
virtual void | setNameType (const std::string &fname, inpFileType ftyp, const std::string &key=std::string()) |
|
virtual void | setOrder (const std::vector< std::string > &ord, const std::string &key=std::string()) |
|
virtual std::vector< std::string > | getOrder (const std::string &key=std::string()) |
|
virtual void | pushOrder (const std::string &ord, const std::string &key=std::string()) |
|
virtual void | setMsh (meshBase *mb, const std::string &key=std::string()) |
|
virtual void | setCmntStr (const std::string &cmstr, const std::string &key=std::string()) |
|
virtual std::string | getCmntStr (const std::string &key=std::string()) |
|
virtual void | process ()=0 |
|
virtual void | write (const std::string &key=std::string()) const |
|
virtual void | read (const std::string &fname)=0 |
|
virtual void | close (const std::string &fname)=0 |
|
virtual void | addNdeSet ()=0 |
|
virtual void | addElmSet ()=0 |
|
virtual void | addMat ()=0 |
|
virtual void | addBC ()=0 |
|
virtual void | addIC ()=0 |
|
virtual bool | addMisc ()=0 |
|
virtual void | wrtPre (const std::string &_tsk, const std::string &__tsk)=0 |
|
virtual void | wrtCmnt (const std::string &cmnt)=0 |
|
virtual void | wrtMsh (const std::string &_tsk, const std::string &__tsk)=0 |
|
virtual void | wrtNdeCrds ()=0 |
|
virtual void | wrtElmCon ()=0 |
|
virtual void | wrtPost ()=0 |
|
virtual void | wrtNdeSet ()=0 |
|
virtual void | wrtElmSet ()=0 |
|
virtual void | wrtMisc (const std::string &_tsk, const std::string &__tsk)=0 |
|
virtual void | edit (const std::string &_tsk, const std::string &__tsk)=0 |
|
|
virtual void | _write (std::stringstream &ss) |
|
|
jsoncons::json | _jstrm |
|
std::string | _key |
|
std::map< std::string, std::stringstream * > | _inp |
|
std::map< std::string, std::vector< meshBase * > > | _mb |
|
std::map< std::string, std::vector< std::string > > | _ord |
|
std::map< std::string, std::string > | _fn |
|
std::map< std::string, inpFileType > | _tpe |
|
std::map< std::string, std::string > | _cmnt |
|
◆ inputGen()
inputGen::inputGen |
( |
jsoncons::json |
jsnStrm | ) |
|
|
inlineexplicit |
◆ ~inputGen()
virtual inputGen::~inputGen |
( |
| ) |
|
|
inlinevirtual |
◆ _set_key()
void inputGen::_set_key |
( |
const std::string & |
key | ) |
|
|
inline |
◆ _write()
virtual void inputGen::_write |
( |
std::stringstream & |
ss | ) |
|
|
inlineprotectedvirtual |
Definition at line 116 of file inputGen.H.
119 if (key_it ==
_inp.end())
121 std::pair<std::string, std::stringstream *>(
123 new std::stringstream()
127 *(
_inp.at(
_key)) << ss.str() << std::endl;
129 ss.str(std::string());
◆ addBC()
virtual void inputGen::addBC |
( |
| ) |
|
|
pure virtual |
◆ addElmSet()
virtual void inputGen::addElmSet |
( |
| ) |
|
|
pure virtual |
◆ addIC()
virtual void inputGen::addIC |
( |
| ) |
|
|
pure virtual |
◆ addMat()
virtual void inputGen::addMat |
( |
| ) |
|
|
pure virtual |
◆ addMisc()
virtual bool inputGen::addMisc |
( |
| ) |
|
|
pure virtual |
◆ addNdeSet()
virtual void inputGen::addNdeSet |
( |
| ) |
|
|
pure virtual |
◆ close()
virtual void inputGen::close |
( |
const std::string & |
fname | ) |
|
|
pure virtual |
◆ edit()
virtual void inputGen::edit |
( |
const std::string & |
_tsk, |
|
|
const std::string & |
__tsk |
|
) |
| |
|
pure virtual |
◆ getCmntStr()
std::string inputGen::getCmntStr |
( |
const std::string & |
key = std::string() | ) |
|
|
virtual |
◆ getOrder()
std::vector< std::string > inputGen::getOrder |
( |
const std::string & |
key = std::string() | ) |
|
|
virtual |
◆ process()
virtual void inputGen::process |
( |
| ) |
|
|
pure virtual |
◆ pushOrder()
void inputGen::pushOrder |
( |
const std::string & |
ord, |
|
|
const std::string & |
key = std::string() |
|
) |
| |
|
virtual |
◆ read()
virtual void inputGen::read |
( |
const std::string & |
fname | ) |
|
|
pure virtual |
◆ setCmntStr()
void inputGen::setCmntStr |
( |
const std::string & |
cmstr, |
|
|
const std::string & |
key = std::string() |
|
) |
| |
|
virtual |
◆ setMsh()
void inputGen::setMsh |
( |
meshBase * |
mb, |
|
|
const std::string & |
key = std::string() |
|
) |
| |
|
virtual |
◆ setNameType()
void inputGen::setNameType |
( |
const std::string & |
fname, |
|
|
inpFileType |
ftyp, |
|
|
const std::string & |
key = std::string() |
|
) |
| |
|
virtual |
◆ setOrder()
void inputGen::setOrder |
( |
const std::vector< std::string > & |
ord, |
|
|
const std::string & |
key = std::string() |
|
) |
| |
|
virtual |
◆ write()
void inputGen::write |
( |
const std::string & |
key = std::string() | ) |
const |
|
virtual |
Definition at line 103 of file inputGen.C.
References _fn, and _inp.
105 bool onlyKey =
false;
108 for (
const auto &it :
_inp)
110 if (onlyKey && it.first != key)
113 std::string fname =
_fn.at(it.first);
118 std::cerr <<
"Error opening file " << fname << std::endl;
121 ofile << (it.second)->str();
◆ wrtCmnt()
virtual void inputGen::wrtCmnt |
( |
const std::string & |
cmnt | ) |
|
|
pure virtual |
◆ wrtElmCon()
virtual void inputGen::wrtElmCon |
( |
| ) |
|
|
pure virtual |
◆ wrtElmSet()
virtual void inputGen::wrtElmSet |
( |
| ) |
|
|
pure virtual |
◆ wrtMisc()
virtual void inputGen::wrtMisc |
( |
const std::string & |
_tsk, |
|
|
const std::string & |
__tsk |
|
) |
| |
|
pure virtual |
◆ wrtMsh()
virtual void inputGen::wrtMsh |
( |
const std::string & |
_tsk, |
|
|
const std::string & |
__tsk |
|
) |
| |
|
pure virtual |
◆ wrtNdeCrds()
virtual void inputGen::wrtNdeCrds |
( |
| ) |
|
|
pure virtual |
◆ wrtNdeSet()
virtual void inputGen::wrtNdeSet |
( |
| ) |
|
|
pure virtual |
◆ wrtPost()
virtual void inputGen::wrtPost |
( |
| ) |
|
|
pure virtual |
◆ wrtPre()
virtual void inputGen::wrtPre |
( |
const std::string & |
_tsk, |
|
|
const std::string & |
__tsk |
|
) |
| |
|
pure virtual |
◆ _cmnt
std::map<std::string, std::string> inputGen::_cmnt |
|
protected |
◆ _fn
std::map<std::string, std::string> inputGen::_fn |
|
protected |
◆ _inp
std::map<std::string, std::stringstream *> inputGen::_inp |
|
protected |
◆ _jstrm
jsoncons::json inputGen::_jstrm |
|
protected |
◆ _key
std::string inputGen::_key |
|
protected |
◆ _mb
std::map<std::string, std::vector<meshBase *> > inputGen::_mb |
|
protected |
◆ _ord
std::map<std::string, std::vector<std::string> > inputGen::_ord |
|
protected |
◆ _tpe
The documentation for this class was generated from the following files: