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 NWARNING_H 00023 #define NWARNING_H 00024 00029 #include "nbaseoutput.h" 00030 #include "nstring.h" 00031 #include "ncolordefs.h" 00032 00036 class DllDeclSpec NWarning: public NBaseOutput { 00037 public: 00041 ~NWarning(void); 00042 00047 static NWarning print(void); 00048 00054 NWarning &operator<<(nint32 val); 00055 00061 NWarning &operator<<(nuint32 val); 00062 00068 NWarning &operator<<(nint64 val); 00069 00075 NWarning &operator<<(nuint64 val); 00076 00082 NWarning &operator<<(double d); 00083 00089 NWarning &operator<<(char c); 00090 00096 NWarning &operator<<(const NString &str); 00097 00103 NWarning &operator<<(const void *ptr); 00104 00113 NWarning &operator<<(const char *str); 00114 00115 protected: 00119 NWarning(void); 00120 00121 00122 void print(int val); 00123 void print(double d); 00124 void print(char c); 00125 void print(const NString &str); 00126 void println(const NString &str); 00127 00128 }; 00129 00130 #endif // NWARNING_H