Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DC_BasicPUSTmStream.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // DC_BasicPUSTmStream.h 00005 // 00006 // Version 1.0 00007 // Date 04.02.04 (Version 1.0) 00008 // Author A. Pasetti (P&P Software) 00009 00010 #ifndef DC_BasicPUSTmStreamH 00011 #define DC_BasicPUSTmStreamH 00012 00013 #include "../GeneralInclude/ForwardDeclarations.h" 00014 #include "../GeneralInclude/BasicTypes.h" 00015 #include "TelemetryStream.h" 00016 00069 class DC_BasicPUSTmStream : public TelemetryStream { 00070 00071 private: 00072 unsigned char* tmData; // the telemetry write area 00073 unsigned int size; // the size of the byte array in bytes 00074 unsigned int writeCounter; 00075 unsigned short packetSequenceControl; 00076 unsigned int nAdditionalBytes; // number of bytes added by this TM stream to 00077 // the application data read from the packet 00078 00079 public: 00080 00086 DC_BasicPUSTmStream(void); 00087 00095 virtual void reset(void); 00096 00101 virtual void flush(void); 00102 00109 virtual unsigned int getCapacity(void); 00110 00125 void setCapacity(unsigned int n); 00126 00135 void setStartAddress(unsigned char* pAddress); 00136 00142 unsigned char* getStartAddress(void) const; 00143 00148 unsigned int getPacketCounter(void) const; 00149 00154 unsigned int getWriteCounter(void) const; 00155 00162 unsigned int getSequenceCounter(void) const; 00163 00183 virtual bool doesPacketFit(TelemetryPacket* pPacket); 00184 00211 virtual void write(TelemetryPacket* pItem); 00212 00219 virtual bool isObjectConfigured(void); 00220 00221 }; 00222 00223 #endif
Copyright 2003 P&P Software GmbH - All Rights Reserved