]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/constants.h
Rewrite command/reply system
[r2c2.git] / source / libmarklin / constants.h
index a61972d304ebec920975bc08c9285be27eb64d6a..f68737dff6f60cf02ad6998691a72a029a3f5e2f 100644 (file)
@@ -8,6 +8,8 @@ Distributed under the GPL
 #ifndef ERROR_H_
 #define ERROR_H_
 
+#include <ostream>
+
 namespace Marklin {
 
 enum Error
@@ -31,6 +33,8 @@ enum Error
        ERR_UNKNOWN_ERROR=0xFF
 };
 
+std::ostream &operator<<(std::ostream &, const Error &);
+
 enum Cmd
 {
        CMD_LOK=0x80,
@@ -55,6 +59,8 @@ enum Cmd
        CMD_EVENT_SENSOR=0xCB
 };
 
+std::ostream &operator<<(std::ostream &, const Cmd &);
+
 } // namespace Marklin
 
 #endif