2019-10-23 16:58:19 +00:00
|
|
|
/*************************************************************************
|
|
|
|
PURPOSE: (Represent Websocket variable server variable.)
|
|
|
|
LIBRARY DEPENDENCIES:
|
|
|
|
( (../src/VariableServerVariable.o))
|
|
|
|
**************************************************************************/
|
|
|
|
#ifndef VARIABLE_SERVER_VARIABLE_HH
|
|
|
|
#define VARIABLE_SERVER_VARIABLE_HH
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
#include <vector>
|
2021-08-18 18:15:10 +00:00
|
|
|
|
|
|
|
#ifndef SWIG
|
2021-10-18 16:32:33 +00:00
|
|
|
#include "CivetServer.h"
|
2021-08-18 18:15:10 +00:00
|
|
|
#endif
|
|
|
|
|
2019-10-23 16:58:19 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include <trick/reference.h>
|
|
|
|
|
|
|
|
#define MAX_ARRAY_LENGTH 4096
|
|
|
|
|
|
|
|
class VariableServerVariable {
|
|
|
|
|
|
|
|
public:
|
|
|
|
VariableServerVariable( REF2* variableType);
|
|
|
|
~VariableServerVariable();
|
|
|
|
const char* getName();
|
2019-10-31 15:39:13 +00:00
|
|
|
const char* getUnits();
|
2019-10-23 16:58:19 +00:00
|
|
|
void stageValue();
|
|
|
|
void writeValue( std::ostream& chkpnt_os );
|
|
|
|
|
|
|
|
private:
|
|
|
|
VariableServerVariable() {}
|
|
|
|
REF2 *varInfo;
|
|
|
|
void *address;
|
|
|
|
int size;
|
|
|
|
void *stageBuffer;
|
|
|
|
bool deref;
|
|
|
|
};
|
|
|
|
#endif
|