00001 // LICENSE: (Please see the file COPYING for details) 00002 // 00003 // NUS - Nemesis Utilities System: A C++ application development framework 00004 // Copyright (C) 2006, 2007 Otavio Rodolfo Piske 00005 // 00006 // This file is part of NUS 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Lesser General Public 00010 // License as published by the Free Software Foundation version 2.1 00011 // of the License. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // Lesser General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU Lesser General Public 00019 // License along with this library; if not, write to the Free Software 00020 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 // 00022 #ifndef NMESSAGE_H 00023 #define NMESSAGE_H 00024 00029 #include "nbaseoutput.h" 00030 #include "nstring.h" 00031 00035 class DllDeclSpec NMessage: public NBaseOutput { 00036 public: 00040 ~NMessage(void); 00041 00046 static NMessage print(void); 00047 00048 00054 NMessage &operator<<(nint32 val); 00055 00061 NMessage &operator<<(nuint32 val); 00062 00063 00069 NMessage &operator<<(nint64 val); 00070 00076 NMessage &operator<<(nuint64 val); 00077 00083 NMessage &operator<<(double d); 00084 00090 NMessage &operator<<(char c); 00091 00097 NMessage &operator<<(const NString &str); 00098 00104 NMessage &operator<<(const void *ptr); 00105 00114 NMessage &operator<<(const char *str); 00115 00116 private: 00117 NMessage(void); 00118 }; 00119 00120 #endif // NMESSAGE_H 00121