summaryrefslogtreecommitdiffstats
path: root/tester/covoar/TraceWriterBase.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-05-09 21:50:37 +1000
committerChris Johns <chrisj@rtems.org>2014-06-18 16:48:08 +1200
commit100f517ab37265acdf067e36b6860020ec8b2184 (patch)
tree2316c8b888e11dcbcfbfc66a0c1e31991ea20656 /tester/covoar/TraceWriterBase.h
parent4.11: Add ntp patch. (diff)
downloadrtems-tools-100f517ab37265acdf067e36b6860020ec8b2184.tar.bz2
covoar: Merger the covoar source from rtems-testing.git.
Use waf to build covoar.
Diffstat (limited to 'tester/covoar/TraceWriterBase.h')
-rw-r--r--tester/covoar/TraceWriterBase.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/tester/covoar/TraceWriterBase.h b/tester/covoar/TraceWriterBase.h
new file mode 100644
index 0000000..2d27d04
--- /dev/null
+++ b/tester/covoar/TraceWriterBase.h
@@ -0,0 +1,49 @@
+/*! @file TraceWriterBase.h
+ * @brief TraceWriterBase Specification
+ *
+ * This file contains the specification of the TraceWriterBase class.
+ */
+
+#ifndef __TRACE_WRITER_BASE_H__
+#define __TRACE_WRITER_BASE_H__
+
+#include <stdint.h>
+#include "TraceReaderBase.h"
+
+namespace Trace {
+
+ /*! @class TraceWriterBase
+ *
+ * This is the specification of the TraceWriter base class.
+ * All TraceWriter implementations inherit from this class.
+ */
+ class TraceWriterBase {
+
+ public:
+
+ /*!
+ * This method constructs a TraceWriterBase instance.
+ */
+ TraceWriterBase();
+
+ /*!
+ * This method destructs a TraceWriterBase instance.
+ */
+ virtual ~TraceWriterBase();
+
+ /*!
+ * This method writes the specified @a trace file.
+ *
+ * @param[in] file specifies the name of the file to write
+ * @param[in] log structure where the trace data was read into
+ *
+ * @return Returns TRUE if the method succeeded and FALSE if it failed.
+ */
+ virtual bool writeFile(
+ const char* const file,
+ Trace::TraceReaderBase *log
+ ) = 0;
+ };
+
+}
+#endif