20 #include "xnodeconnector.h"
25 #define MAX_RAW_RECORD_SIZE 1000000
29 XRawStream(
const char *name,
bool runtime,
const shared_ptr<XDriverList> &driverlist);
31 const shared_ptr<XStringNode> &filename()
const {
return m_filename;}
33 shared_ptr<XDriverList> m_drivers;
38 shared_ptr<XStringNode> m_filename;
43 XRawStreamRecorder(
const char *name,
bool runtime,
const shared_ptr<XDriverList> &driverlist);
45 const shared_ptr<XBoolNode> &recording()
const {
return m_recording;}
52 shared_ptr<XListener> m_lsnOnRecord;
53 shared_ptr<XListener> m_lsnOnCatch;
54 shared_ptr<XListener> m_lsnOnRelease;
55 shared_ptr<XListener> m_lsnOnFlush;
56 shared_ptr<XListener> m_lsnOnOpen;
60 const shared_ptr<XBoolNode> m_recording;
69 const shared_ptr<XDriverList> &driverlist,
const shared_ptr<XScalarEntryList> &entrylist);
72 const shared_ptr<XStringNode> &filename()
const {
return m_filename;}
73 const shared_ptr<XBoolNode> &recording()
const {
return m_recording;}
74 const shared_ptr<XStringNode> &lastLine()
const {
return m_lastLine;}
75 const shared_ptr<XStringNode> &logFilename()
const {
return m_logFilename;}
76 const shared_ptr<XBoolNode> &logRecording()
const {
return m_logRecording;}
77 const shared_ptr<XUIntNode> &logEvery()
const {
return m_logEvery;}
82 const shared_ptr<XDriverList> m_drivers;
83 const shared_ptr<XScalarEntryList> m_entries;
84 const shared_ptr<XStringNode> m_filename;
85 const shared_ptr<XStringNode> m_lastLine;
86 const shared_ptr<XBoolNode> m_recording;
87 const shared_ptr<XStringNode> m_logFilename;
88 const shared_ptr<XBoolNode> m_logRecording;
89 const shared_ptr<XUIntNode> m_logEvery;
90 shared_ptr<XListener> m_lsnOnRecord;
91 shared_ptr<XListener> m_lsnOnFlush;
92 shared_ptr<XListener> m_lsnOnCatch;
93 shared_ptr<XListener> m_lsnOnRelease;
94 shared_ptr<XListener> m_lsnOnLastLineChanged;
95 shared_ptr<XListener> m_lsnOnFilenameChanged;
96 shared_ptr<XListener> m_lsnOnLogFilenameChanged;
97 shared_ptr<XListener> m_lsnOnLogRecord;
104 std::fstream m_stream;
105 std::fstream m_logStream;