indexpreviousnext

file name: structs.hpp, structs.cpp
classification: simulation
contents: SApplClockEvent, SApplCommand, SApplCrashEvent, SApplDelayEstimationEvent, SApplDelayEvent, SApplDistribution, SApplEvent, SApplGpsEvent, SApplNetEvent, SApplPreloadEvent, SApplRateEvent, SApplRecvMsgEvent, SApplSendMsgEvent, SApplTimeEvent, SApplWobbleDrift, SBase, SBooleanReply, SCommand, SDoubleReply, SEnumSizes, SEvent, SEventReport, SGpsConnectCommand, SModuleBase, SNetCrashEvent, SNetDistribution, SNetDistributionP2P, SNetEvent, SNetMessageEvent, SNetworkCommand, SNetworkConnectCommand, SNetworkCreateCommand, SNetworkData, SNetworkParameter, SParameter, SRateData, SReply, SSingleNetworkParameter, SSingleParameter, STimeParameter, STransmissionData
use: contains all structures used in communication with the evaluation system
 

Note: all structures have a member size as their first item, which must be set to the size of the structure. If new classes are derived, all constructors must include the statement size=sizeof(*this);.
Note: all structures should only have public members. If you also include protected or private members, the ordering of these members depends on the compiler and it is not guaranteed anymore that member size is located at the base address of the structure.
Note: most structures just have some members that can be set. Only structure SEventReport is a little bit more complex (see below).
 

global items used by the structures:


inheritance relations:

SBase


structure internas:

struct SApplCommand : derived from SCommand

struct SApplClockEvent : derived from SApplEvent struct SApplCrashEvent : derived from SApplEvent struct SApplDelayEstimationEvent : derived from SApplEvent struct SApplDelayEvent : derived from SApplRecvMsgEvent struct SApplDistribution : derived from SParameter struct SApplEvent : derived from SEvent struct SApplGpsEvent : derived from SApplEvent struct SApplNetEvent : derived from SApplEvent struct SApplPreloadEvent : derived from SApplClockEvent struct SApplRateEvent : derived from SApplEvent struct SApplRecvMsgEvent : derived from SApplSendMsgEvent struct SApplSendMsgEvent : derived from SApplEvent struct SApplTimeEvent : derived from SApplEvent struct SApplWobbleDrift : derived from SApplDistribution struct SBase struct SBooleanReply : derived from SReply struct SCommand : derived from SModuleBase struct SDoubleReply : derived from SReply struct SEnumSizes : derived from SBase struct SEvent : derived from SModuleBase struct SEventReport : derived from SSingleParameter

used for accessing event and event class bitmasks

EBool set: Is True if the bit should be set to True, False if it should be set to False. If a complete mask is being set (masksize is positive, this member is ignored.

INT32 masksize: The size of the mask. Set this member to zero if you want to set a single bit.

char mask[EventCount/8+1]: Stores the bitmask. If masksize is zero, this member should be ignored.
Note: it is assumed that there are more events than event classes!
 

SEventReport (): sets set to False (and of course sets the size member).

void Set (EEvent event, EBool on): Sets set to on, and stores the event in inherited member value. The type is set to EventReport, and masksize is set to 0.

void Set (EEventClass eventClass, EBool on): Sets set to on, and stores the event class in inherited member value. The type is set to EventClassReport, and masksize is set to 0.

void Set (ESystemParameter eventType, void *map, INT32 s): Copies s bytes of map into the internal mask and sets the type to eventType. If member mask is less than s bytes large, if eventType is neither EventReport nor EventClassReport, or if map is NULL, an assert fails.

void Get (EBool& on) const: Copies the value of set into on.

void Get (SINT32& value) const: Copies the value of inherited member value into the parameter value.

struct SGpsConnectCommand : derived from SCommand

struct SModuleBase : derived from SBase struct SNetCrashEvent : derived from SNetEvent struct SNetDistribution : derived from SNetworkParameter struct SNetDistributionP2P : derived from SNetDistribution struct SNetEvent : derived from SEvent struct SNetMessageEvent : derived from SNetEvent struct SNetworkCommand : derived from SCommand struct SNetworkConnectCommand : derived from SNetworkCommand struct SNetworkCreateCommand : derived from SCommand struct SNetworkData : derived from SSingleNetworkParameter struct SNetworkParameter : derived from SParameter struct SParameter : derived from SModuleBase struct SRateData : derived from STransmissionData struct SReply : derived from SModuleBase struct SSingleNetworkParameter : derived from SNetworkParameter struct SSingleParameter : derived from SParameter struct STimeParameter : derived from SParameter struct STransmissionData : derived from SParameter
last modified: Fri Feb 5 18:56:37 1999