#include <LogServer.hh>
Inherited by LogAccessorP.
User code can derrive from this class to produce "custom" data acquisition routines. The getVar mnethod will be called whenever the the LogServer needs to acquire the variable associated with this instance of LogAccessor. Your implementation of getVar must write the expected number of bytes of data to a location indicated in the invocation of getVar.
Typically your instantiation of this class will locally store a refernce to your class, and it will use this reference to collect the necessary data. This technique allows you to collect data from anywhere in your class and collect it together into a single vector for logging.
Public Member Functions | |
virtual void | getVar (int size, unsigned char *p)=0 |
|
User definable method for performing data acquisition Your implementation of this method must write exactly size bytes to the location p whenever this method is called. It is critical that the data be of the format/type specified when the variable associated with this accessor function was registered. You should avoid doing any computation in this routine as it is called during the data acquisition process and may be called multiple times in one cycyle if there are multiple logging clients recording the associated variable. |