X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fconstants.h;h=f68737dff6f60cf02ad6998691a72a029a3f5e2f;hb=48dff17ed3144d944965e7cb534e1f8fb92bd620;hp=52aa5ea5be3c67ddb58fa66c57263f10f7e6891a;hpb=ca5b1fcfd52a09e3d3b2c4c011dc91ac9ad19694;p=r2c2.git diff --git a/source/libmarklin/constants.h b/source/libmarklin/constants.h index 52aa5ea..f68737d 100644 --- a/source/libmarklin/constants.h +++ b/source/libmarklin/constants.h @@ -1,6 +1,15 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #ifndef ERROR_H_ #define ERROR_H_ +#include + namespace Marklin { enum Error @@ -24,6 +33,8 @@ enum Error ERR_UNKNOWN_ERROR=0xFF }; +std::ostream &operator<<(std::ostream &, const Error &); + enum Cmd { CMD_LOK=0x80, @@ -48,6 +59,8 @@ enum Cmd CMD_EVENT_SENSOR=0xCB }; +std::ostream &operator<<(std::ostream &, const Cmd &); + } // namespace Marklin #endif