MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
ExtFileHandlerBase Class Referenceabstract

#include <extforce.h>

Inheritance diagram for ExtFileHandlerBase:
Collaboration diagram for ExtFileHandlerBase:

Public Types

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)
}
 

Public Member Functions

 ExtFileHandlerBase (mbsleep_t SleepTime, std::streamsize Precision)
 
virtual ~ExtFileHandlerBase (void)
 
virtual bool Prepare_pre (void)=0
 
virtual Negotiate NegotiateRequest (void) const
 
virtual void Prepare_post (bool ok)=0
 
virtual void AfterPredict (void)=0
 
virtual bool Send_pre (SendWhen when)=0
 
virtual void Send_post (SendWhen when)=0
 
virtual bool Recv_pre (void)=0
 
virtual bool Recv_post (void)=0
 
virtual std::ostream * GetOutStream (void)
 
virtual std::istream * GetInStream (void)
 
virtual int GetOutFileDes (void)
 
virtual int GetSendFlags (void) const
 
virtual int GetInFileDes (void)
 
virtual int GetRecvFlags (void) const
 

Protected Attributes

std::streamsize Precision
 
mbsleep_t SleepTime
 
bool bOK
 

Detailed Description

Definition at line 51 of file extforce.h.

Member Enumeration Documentation

Enumerator
NEGOTIATE_NO 
NEGOTIATE_CLIENT 
NEGOTIATE_SERVER 

Definition at line 59 of file extforce.h.

Enumerator
OUTPUT_KIN 
OUTPUT_DYN 
OUTPUT_REF 
OUTPUT_REF_KIN 
OUTPUT_REF_DYN 

Definition at line 65 of file extforce.h.

Enumerator
SEND_FIRST_TIME 
SEND_REGULAR 
SEND_AFTER_CONVERGENCE 

Definition at line 53 of file extforce.h.

Constructor & Destructor Documentation

ExtFileHandlerBase::ExtFileHandlerBase ( mbsleep_t  SleepTime,
std::streamsize  Precision 
)

Definition at line 50 of file extforce.cc.

References NO_OP.

53 {
54  NO_OP;
55 }
#define NO_OP
Definition: myassert.h:74
std::streamsize Precision
Definition: extforce.h:75
mbsleep_t SleepTime
Definition: extforce.h:76
ExtFileHandlerBase::~ExtFileHandlerBase ( void  )
virtual

Definition at line 57 of file extforce.cc.

References NO_OP.

58 {
59  NO_OP;
60 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

virtual void ExtFileHandlerBase::AfterPredict ( void  )
pure virtual

Implemented in ExtFileHandler, and ExtFileHandlerEDGE.

Referenced by ExtForce::AfterPredict().

int ExtFileHandlerBase::GetInFileDes ( void  )
virtual

Definition at line 99 of file extforce.cc.

References MBDYN_EXCEPT_ARGS.

Referenced by StructExtForce::Prepare(), StructMappingExtForce::Prepare(), ExtModalForce::Prepare(), StructExtForce::Recv(), StructMappingExtForce::Recv(), and ExtModalForce::Recv().

100 {
102  // return -1;
103 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
std::istream * ExtFileHandlerBase::GetInStream ( void  )
virtual
int ExtFileHandlerBase::GetOutFileDes ( void  )
virtual
int ExtFileHandlerBase::GetRecvFlags ( void  ) const
virtual
int ExtFileHandlerBase::GetSendFlags ( void  ) const
virtual

Definition at line 92 of file extforce.cc.

References MBDYN_EXCEPT_ARGS.

Referenced by StructExtForce::Prepare(), StructMappingExtForce::Prepare(), ExtModalForce::Prepare(), and ExtModalForce::Send().

93 {
95  // return 0;
96 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
ExtFileHandlerBase::Negotiate ExtFileHandlerBase::NegotiateRequest ( void  ) const
virtual
virtual void ExtFileHandlerBase::Prepare_post ( bool  ok)
pure virtual

Implemented in ExtFileHandler, and ExtFileHandlerEDGE.

Referenced by ExtForce::SetValue().

virtual bool ExtFileHandlerBase::Prepare_pre ( void  )
pure virtual

Implemented in ExtFileHandler, and ExtFileHandlerEDGE.

Referenced by ExtForce::SetValue().

virtual bool ExtFileHandlerBase::Recv_post ( void  )
pure virtual

Implemented in ExtFileHandler, and ExtFileHandlerEDGE.

Referenced by ExtForce::Recv().

virtual bool ExtFileHandlerBase::Recv_pre ( void  )
pure virtual

Implemented in ExtFileHandler, and ExtFileHandlerEDGE.

Referenced by ExtForce::Recv().

virtual void ExtFileHandlerBase::Send_post ( SendWhen  when)
pure virtual

Implemented in ExtFileHandler, and ExtFileHandlerEDGE.

Referenced by ExtForce::Send().

virtual bool ExtFileHandlerBase::Send_pre ( SendWhen  when)
pure virtual

Implemented in ExtFileHandler, and ExtFileHandlerEDGE.

Referenced by ExtForce::Send().

Member Data Documentation

bool ExtFileHandlerBase::bOK
protected

Definition at line 77 of file extforce.h.

Referenced by ExtFileHandler::Recv_pre().

std::streamsize ExtFileHandlerBase::Precision
protected

Definition at line 75 of file extforce.h.

Referenced by ExtFileHandlerEDGE::Send_pre(), and ExtFileHandler::Send_pre().


The documentation for this class was generated from the following files: