Changeset 61 in pacpusframework for trunk/include/Pacpus/kernel
- Timestamp:
- Jan 9, 2013, 1:40:39 PM (12 years ago)
- Location:
- trunk/include/Pacpus/kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/kernel/ComponentBase.h
r42 r61 90 90 */ 91 91 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config) = 0; 92 93 // The XML node that is got in the configureComponent method 92 93 protected: 94 /// The XML node that is got in the configureComponent method 94 95 XmlComponentConfig param; 95 96 96 // the name of the component. It is this one in the XML config file97 /// the name of the component. It is this one in the XML config file 97 98 QString componentName; 98 99 99 // is the component is recording data?100 /// is the component is recording data? 100 101 bool recording; 101 102 102 // provided for compatibility with old DBITE framework103 /// provided for compatibility with old DBITE framework 103 104 bool THREAD_ALIVE; 104 105 105 // is the component active?106 /// is the component active? 106 107 bool mIsActive; 107 108 108 // a pointer to the manager of components109 /// a pointer to the manager of components 109 110 ComponentManager * mgr; 110 111 111 112 private: 112 // called by the ComponentManager to start the component113 /// called by the ComponentManager to start the component 113 114 int startComponent(); 114 115 115 // called by the ComponentManager to stop the component116 /// called by the ComponentManager to stop the component 116 117 int stopComponent(); 117 118 118 // store the state of the component119 /// store the state of the component 119 120 COMPONENT_STATE componentState_; 120 121 121 // is the component configured (ie configureComponent method was called)122 /// is the component configured (ie configureComponent method was called) 122 123 COMPONENT_CONFIGURATION configuration_; 123 124 }; -
trunk/include/Pacpus/kernel/DbiteFile.h
r59 r61 23 23 namespace pacpus { 24 24 25 /// @todo Documentation 25 26 struct FILELIB_API VariableDataSizeTag {}; 26 27 FILELIB_API extern VariableDataSizeTag VariableDataSize; 27 28 29 /// @todo Documentation 28 30 struct FILELIB_API ReadModeTag {}; 29 31 FILELIB_API extern ReadModeTag ReadMode; 30 32 33 /// @todo Documentation 31 34 struct FILELIB_API WriteModeTag {}; 32 35 FILELIB_API extern WriteModeTag WriteMode; 33 36 37 /// @todo Documentation 34 38 struct FILELIB_API DiagnoseModeTag {}; 35 39 FILELIB_API extern DiagnoseModeTag DiagnoseMode; 36 40 41 /// @todo Documentation 37 42 class FILELIB_API DbiteFile 38 43 { -
trunk/include/Pacpus/kernel/hdfile_header_t.h
r32 r61 19 19 20 20 #pragma pack(push,4) 21 /// @todo Documentation 21 22 struct hdfile_header_t 22 23 { 24 /// @todo Documentation 23 25 typedef int8_t SignatureT; 26 /// @todo Documentation 24 27 typedef int32_t DataTypeT; 28 /// @todo Documentation 25 29 typedef int32_t VersionT; 30 /// @todo Documentation 26 31 typedef int32_t DataSizeT; 32 /// @todo Documentation 27 33 typedef int32_t DataOffsetT; 28 // FIXME: file size should be 64-bit long to support large (>2GB) files 34 /// @todo Documentation 35 /// @todo FIXME: file size should be 64-bit long to support large (>2GB) files 29 36 typedef int32_t FileSizeT; 37 /// @todo Documentation 30 38 typedef int32_t RecordCountT; 31 39 40 /// @todo Documentation 32 41 static const DataSizeT kVariableRecordSize = -1; 33 42 43 /// @todo Documentation 34 44 SignatureT Signature[HEADER_SIGNATURE_LENGTH]; 35 DataTypeT Type; /* IMAGE, CAN, UNKNOWN, etc. */ 45 /// Record data type 46 /// Should default to @link FILE_DBT_UNKNOWN 47 /// @see DbiteFileTypes.h for more 48 DataTypeT Type; 49 /// File format version 36 50 VersionT VersionNumber; 37 DataOffsetT DataOffset; /* starting of the data */ 38 DataSizeT DataSize; /* number of byte for data */ 39 FileSizeT FileSize; /* current size of the file */ 40 road_time_t TimeMin, TimeMax; 41 RecordCountT NbRecords; /* number of records */ 51 /// Offset indicating the start of the data [bytes] 52 DataOffsetT DataOffset; 53 /// Current size of the data, without header [bytes] 54 DataSizeT DataSize; 55 /// Current size of the file [bytes] 56 FileSizeT FileSize; 57 /// @todo Documentation 58 road_time_t TimeMin; 59 /// @todo Documentation 60 road_time_t TimeMax; 61 /// Number of records already in the file 62 RecordCountT NbRecords; 42 63 }; 43 64 #pragma pack(pop)
Note:
See TracChangeset
for help on using the changeset viewer.