MBDyn-1.7.3
|
#include <extforce.h>
Public Member Functions | |
ExtFileHandler (std::string &fin, bool bRemoveIn, std::string &fout, bool bNoClobberOut, mbsleep_t SleepTime, std::streamsize Precision) | |
virtual | ~ExtFileHandler (void) |
virtual bool | Prepare_pre (void) |
virtual void | Prepare_post (bool ok) |
virtual void | AfterPredict (void) |
virtual bool | Send_pre (SendWhen when) |
virtual void | Send_post (SendWhen when) |
virtual bool | Recv_pre (void) |
virtual bool | Recv_post (void) |
virtual std::ostream * | GetOutStream (void) |
virtual std::istream * | GetInStream (void) |
Public Member Functions inherited from ExtFileHandlerBase | |
ExtFileHandlerBase (mbsleep_t SleepTime, std::streamsize Precision) | |
virtual | ~ExtFileHandlerBase (void) |
virtual Negotiate | NegotiateRequest (void) const |
virtual int | GetOutFileDes (void) |
virtual int | GetSendFlags (void) const |
virtual int | GetInFileDes (void) |
virtual int | GetRecvFlags (void) const |
Protected Attributes | |
std::string | fin |
std::string | fout |
std::string | tmpout |
bool | bRemoveIn |
bool | bNoClobberOut |
std::ifstream | inf |
std::ofstream | outf |
Protected Attributes inherited from ExtFileHandlerBase | |
std::streamsize | Precision |
mbsleep_t | SleepTime |
bool | bOK |
Additional Inherited Members | |
Public Types inherited from ExtFileHandlerBase | |
enum | SendWhen { SEND_FIRST_TIME, SEND_REGULAR, SEND_AFTER_CONVERGENCE } |
enum | Negotiate { NEGOTIATE_NO, NEGOTIATE_CLIENT, NEGOTIATE_SERVER } |
enum | OutputFlags { OUTPUT_KIN = 0x1000, OUTPUT_DYN = 0x2000, OUTPUT_REF = 0x4000, OUTPUT_REF_KIN = (OUTPUT_REF | OUTPUT_KIN), OUTPUT_REF_DYN = (OUTPUT_REF | OUTPUT_DYN) } |
Definition at line 112 of file extforce.h.
ExtFileHandler::ExtFileHandler | ( | std::string & | fin, |
bool | bRemoveIn, | ||
std::string & | fout, | ||
bool | bNoClobberOut, | ||
mbsleep_t | SleepTime, | ||
std::streamsize | Precision | ||
) |
Definition at line 116 of file extforce.cc.
References NO_OP.
|
virtual |
Definition at line 129 of file extforce.cc.
References NO_OP.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements ExtFileHandlerBase.
Definition at line 135 of file extforce.cc.
|
virtual |
Implements ExtFileHandlerBase.
Definition at line 257 of file extforce.cc.
References bRemoveIn, fin, inf, and MBDYN_EXCEPT_ARGS.
|
virtual |
Implements ExtFileHandlerBase.
Definition at line 234 of file extforce.cc.
References ExtFileHandlerBase::bOK, fin, inf, mbdyn_stop_at_end_of_iteration(), mbsleep(), and ExtFileHandlerBase::SleepTime.
|
virtual |
Implements ExtFileHandlerBase.
Definition at line 219 of file extforce.cc.
References fout, MBDYN_EXCEPT_ARGS, outf, and tmpout.
Implements ExtFileHandlerBase.
Definition at line 153 of file extforce.cc.
References bNoClobberOut, fout, MBDYN_EXCEPT_ARGS, mbdyn_stop_at_end_of_iteration(), mbsleep(), outf, ExtFileHandlerBase::Precision, ExtFileHandlerBase::SleepTime, and tmpout.
|
protected |
Definition at line 115 of file extforce.h.
Referenced by Send_pre().
|
protected |
Definition at line 115 of file extforce.h.
Referenced by Recv_post().
|
protected |
Definition at line 114 of file extforce.h.
Referenced by Recv_post(), and Recv_pre().
|
protected |
Definition at line 114 of file extforce.h.
Referenced by Send_post(), and Send_pre().
|
protected |
Definition at line 117 of file extforce.h.
Referenced by GetInStream(), Recv_post(), and Recv_pre().
|
protected |
Definition at line 118 of file extforce.h.
Referenced by GetOutStream(), Send_post(), and Send_pre().
|
protected |
Definition at line 114 of file extforce.h.
Referenced by Send_post(), and Send_pre().