32 #ifndef STREAMOUTELEM_H
33 #define STREAMOUTELEM_H
39 #define UNIX_PATH_MAX 108
40 #define DEFAULT_PORT 9011
41 #define DEFAULT_HOST "127.0.0.1"
96 virtual void Set(
size_t size,
const char *
buf) = 0;
97 virtual void Modify(
void) = 0;
99 virtual const void *
GetOutBuf(
void)
const = 0;
109 Copy(
size_t size,
const char *
buf);
111 void Set(
size_t size,
const char *
buf);
114 virtual const void *
GetOutBuf(
void)
const;
134 virtual void Prepare(
void) = 0;
172 void Set(
size_t size,
const char *
buf);
194 bool Init(
const std::string&
msg,
unsigned uLabel,
unsigned nChannels);
243 virtual bool IsWord(
const std::string& s)
const;
virtual ~StreamOutputContentTypeReader(void)
std::vector< ScalarValue * > Values
StreamContent * ReadStreamContent(DataManager *pDM, MBDynParser &HP, StreamContent::Type type)
virtual int GetOutSize(void) const
void Set(size_t size, const char *buf)
unsigned int OutputCounter
std::map< std::string, StreamOutputContentTypeReader * > StreamOutputContentTypeMap
Elem * ReadOutputElem(DataManager *pDM, MBDynParser &HP, unsigned int uLabel, StreamOutElem::Type eType, StreamContent::Type sType)
StreamContentValue(const std::vector< ScalarValue * > &v, StreamContent::Modifier *pMod)
virtual void Modify(void)=0
void Set(size_t size, const char *buf)
StreamOutElem(unsigned int uL, const std::string &name, unsigned int oe)
virtual StreamContent * Read(DataManager *pDM, MBDynParser &HP)
std::vector< char > m_outbuf
void Echo(const doublereal *pbuf, unsigned nChannels)
virtual const void * GetOutBuf(void) const =0
virtual ~StreamContent(void)
virtual void WorkSpaceDim(integer *piRows, integer *piCols) const
void * GetBuf(void) const
const void * GetOutBuf(void) const
virtual const void * GetOutBuf(void) const
StreamOutEcho(std::string &sOutFileName, int iPrecision, doublereal dShift)
virtual bool IsWord(const std::string &s) const
virtual SubVectorHandler & AssRes(SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &X, const VectorHandler &XP)
virtual unsigned GetNumChannels(void) const =0
bool Init(const std::string &msg, unsigned uLabel, unsigned nChannels)
virtual void Set(size_t size, const char *buf)=0
void DestroyStreamOutputContentTypes(void)
virtual void Prepare(void)=0
unsigned GetNumChannels(void) const
StreamOutputContentTypeMap streamOutputContentTypeMap
virtual Elem::Type GetElemType(void) const
virtual int GetOutSize(void) const =0
std::vector< BufCast * > m_data
StreamOutputContentTypeWordSetType streamOutputContentTypeWordSet
bool SetStreamOutputContentType(const char *name, StreamOutputContentTypeReader *rf)
StreamContent::Modifier * ReadStreamContentModifier(MBDynParser &HP, integer nCh)
unsigned streamOutputInitFunctionCalls
const void * GetOutBuf(void) const
Copy(size_t size, const char *buf)
void InitStreamOutputContentTypes(void)
StreamOutEcho * ReadStreamOutEcho(MBDynParser &HP)
virtual VariableSubMatrixHandler & AssJac(VariableSubMatrixHandler &WorkMat, doublereal dCoef, const VectorHandler &X, const VectorHandler &XP)
virtual StreamContent * Read(DataManager *pDM, MBDynParser &HP)
StreamContentCopyCast(size_t size, const char *buf, size_t outsize, const std::vector< BufCast * > &data)
virtual ~StreamOutElem(void)
static doublereal buf[BUFSIZE]
virtual StreamContent * Read(DataManager *pDM, MBDynParser &HP)=0
int GetOutSize(void) const
virtual ~StreamContentValue(void)
int GetOutSize(void) const
StreamContent(size_t size, Modifier *pMod)