X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAircraft%2Fflightrecorder.hxx;h=f3759df64acc026be5a89012fb27dd83a1de971b;hb=a7e4f2a971acf2262cd1a5840c774a7d8a784a4b;hp=7650db458fe4d3d21c8a9f78dcfa472448723869;hpb=7fabeed85d247142d7324ad70e9df706d6730e9b;p=flightgear.git diff --git a/src/Aircraft/flightrecorder.hxx b/src/Aircraft/flightrecorder.hxx index 7650db458..f3759df64 100644 --- a/src/Aircraft/flightrecorder.hxx +++ b/src/Aircraft/flightrecorder.hxx @@ -54,6 +54,7 @@ public: virtual ~FGFlightRecorder(); void reinit (void); + void reinit (SGPropertyNode_ptr ConfigNode); FGReplayData* createEmptyRecord (void); FGReplayData* capture (double SimTime, FGReplayData* pRecycledBuffer); void replay (double SimTime, const FGReplayData* pNextBuffer, @@ -61,9 +62,10 @@ public: void deleteRecord (FGReplayData* pRecord); int getRecordSize (void) { return m_TotalRecordSize;} + void getConfig (SGPropertyNode* root); private: - void initDefault(void); + SGPropertyNode_ptr getDefault(void); void initSignalList(const char* pSignalType, FlightRecorder::TSignalList& SignalList, SGPropertyNode_ptr BaseNode); void processSignalList(const char* pSignalType, FlightRecorder::TSignalList& SignalList, @@ -72,6 +74,8 @@ private: bool haveProperty(FlightRecorder::TSignalList& Capture,SGPropertyNode* pProperty); bool haveProperty(SGPropertyNode* pProperty); + int getConfig(SGPropertyNode* root, const char* typeStr, const FlightRecorder::TSignalList& SignalList); + SGPropertyNode_ptr m_RecorderNode; SGPropertyNode_ptr m_ConfigNode; @@ -84,6 +88,7 @@ private: int m_TotalRecordSize; std::string m_ConfigName; + bool m_usingDefaultConfig; }; #endif /* FLIGHTRECORDER_HXX_ */