X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAircraft%2Fflightrecorder.hxx;h=f3759df64acc026be5a89012fb27dd83a1de971b;hb=a7e4f2a971acf2262cd1a5840c774a7d8a784a4b;hp=a2045f64a8b8db341cfad1a2f0ed8b04c46e7698;hpb=d64bcf0175dfbd44186e1454c1ba068a00eed80b;p=flightgear.git diff --git a/src/Aircraft/flightrecorder.hxx b/src/Aircraft/flightrecorder.hxx index a2045f64a..f3759df64 100644 --- a/src/Aircraft/flightrecorder.hxx +++ b/src/Aircraft/flightrecorder.hxx @@ -16,7 +16,7 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. // /////////////////////////////////////////////////////////////////////////////// @@ -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,17 +62,20 @@ 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, SGPropertyNode_ptr SignalListNode, - string PropPrefix="", int Count = 1); + std::string PropPrefix="", int Count = 1); 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; @@ -83,7 +87,8 @@ private: FlightRecorder::TSignalList m_CaptureBool; int m_TotalRecordSize; - string m_ConfigName; + std::string m_ConfigName; + bool m_usingDefaultConfig; }; #endif /* FLIGHTRECORDER_HXX_ */