mirror of
https://github.com/nasa/trick.git
synced 2025-01-25 13:49:51 +00:00
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
|
/*
|
||
|
PURPOSE:
|
||
|
(VariableServerReference)
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* $Id:$
|
||
|
*/
|
||
|
|
||
|
#ifndef _VARIABLESERVERREFERENCE_HH_
|
||
|
#define _VARIABLESERVERREFERENCE_HH_
|
||
|
|
||
|
#include "sim_services/MemoryManager/include/reference.h"
|
||
|
#include "trick_utils/units/include/UCFn.hh"
|
||
|
|
||
|
#define MAX_ARRAY_LENGTH 4096
|
||
|
|
||
|
namespace Trick {
|
||
|
|
||
|
/**
|
||
|
This class provides reference information for variables requested from the variable server by the client.
|
||
|
@author Alex Lin
|
||
|
*/
|
||
|
|
||
|
class VariableReference {
|
||
|
public:
|
||
|
VariableReference(REF2 * in_ref) ;
|
||
|
~VariableReference() ;
|
||
|
|
||
|
/** Pointer to trick variable reference structure.\n */
|
||
|
REF2 * ref ;
|
||
|
UCFn * conversion_factor ;
|
||
|
void * buffer_in ;
|
||
|
void * buffer_out ;
|
||
|
void * address ; // -- address of data copied to buffer
|
||
|
int size ; // -- size of data copied to buffer
|
||
|
TRICK_TYPE string_type ; // -- indicate if this is a string or wstring
|
||
|
bool need_deref ; // -- inidicate this is a painter to be dereferenced
|
||
|
} ;
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|