MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
StreamDR Struct Reference

#include <socketstreamdrive.h>

Inheritance diagram for StreamDR:
Collaboration diagram for StreamDR:

Public Member Functions

 StreamDR (void)
 
 StreamDR (const std::string &s)
 
virtual DriveRead (unsigned uLabel, const DataManager *pDM, MBDynParser &HP)
 
- Public Member Functions inherited from DriveRead
virtual ~DriveRead (void)
 

Private Attributes

std::string s
 

Detailed Description

Definition at line 88 of file socketstreamdrive.h.

Constructor & Destructor Documentation

StreamDR::StreamDR ( void  )
inline

Definition at line 93 of file socketstreamdrive.h.

References NO_OP.

93 { NO_OP; };
#define NO_OP
Definition: myassert.h:74
StreamDR::StreamDR ( const std::string &  s)
inline

Definition at line 94 of file socketstreamdrive.h.

References NO_OP.

94 : s(s) { NO_OP; };
std::string s
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

Drive * StreamDR::Read ( unsigned  uLabel,
const DataManager pDM,
MBDynParser HP 
)
virtual

Implements DriveRead.

Definition at line 622 of file socketstreamdrive.cc.

References IncludeParser::GetLineData(), MBDYN_EXCEPT_ARGS, and ReadRTMBDynInDrive().

623 {
624  Drive *pDr = 0;
625 
626  if (!s.empty()) {
627  pedantic_cout("\"" << s << "\" is deprecated; "
628  "use \"stream\" instead at line "
629  << HP.GetLineData() << std::endl);
630  }
631 
632 #ifdef USE_RTAI
633  if (::rtmbdyn_rtai_task != NULL){
634  silent_cout("starting RTMBDyn drive " << uLabel << std::endl);
635  pDr = ReadRTMBDynInDrive(pDM, HP, uLabel);
636  } else
637 #endif /* USE_RTAI */
638  {
639 #ifdef USE_SOCKET
640  silent_cout("starting stream drive " << uLabel << std::endl);
641  pDr = ReadStreamDrive(pDM, HP, uLabel);
642 #else // ! USE_SOCKET
643  silent_cerr("stream drive " << uLabel
644  << " not allowed at line " << HP.GetLineData()
645  << " because apparently the current architecture "
646  "does not support sockets" << std::endl);
648 #endif // ! USE_SOCKET
649  }
650 
651  return pDr;
652 }
std::string s
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
Definition: drive.h:89
Drive * ReadRTMBDynInDrive(const DataManager *pDM, MBDynParser &HP, unsigned int uLabel)
virtual HighParser::ErrOut GetLineData(void) const
Definition: parsinc.cc:697

Here is the call graph for this function:

Member Data Documentation

std::string StreamDR::s
private

Definition at line 90 of file socketstreamdrive.h.


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