Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_CppTest / INC / cpptest-source.h
diff --git a/WCudaMSE/API_CppTest/INC/cpptest-source.h b/WCudaMSE/API_CppTest/INC/cpptest-source.h
new file mode 100755 (executable)
index 0000000..1174093
--- /dev/null
@@ -0,0 +1,67 @@
+// ---\r
+//\r
+// $Id: cpptest-source.h,v 1.3 2005/06/08 08:08:06 nilu Exp $\r
+//\r
+// CppTest - A C++ Unit Testing Framework\r
+// Copyright (c) 2003 Niklas Lundell\r
+//\r
+// ---\r
+//\r
+// This library is free software; you can redistribute it and/or\r
+// modify it under the terms of the GNU Lesser General Public\r
+// License as published by the Free Software Foundation; either\r
+// version 2 of the License, or (at your option) any later version.\r
+//\r
+// This library is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+// Lesser General Public License for more details.\r
+//\r
+// You should have received a copy of the GNU Lesser General Public\r
+// License along with this library; if not, write to the\r
+// Free Software Foundation, Inc., 59 Temple Place - Suite 330,\r
+// Boston, MA 02111-1307, USA.\r
+//\r
+// ---\r
+\r
+/** \file */\r
+\r
+#ifndef CPPTEST_SOURCE_H\r
+#define CPPTEST_SOURCE_H\r
+\r
+#include <string>\r
+\r
+namespace Test\r
+{\r
+       class Suite;\r
+       \r
+       /// \brief Assertment source information.\r
+       ///\r
+       /// Contains information about an assertment point.\r
+       ///\r
+       class Source\r
+       {\r
+               friend class Suite;\r
+               \r
+       public:\r
+               Source();\r
+               Source(const char* file, unsigned int line, const char* msg);\r
+               \r
+               const std::string& file() const;\r
+               unsigned int line() const;\r
+               const std::string& message() const;\r
+               const std::string& suite() const;\r
+               const std::string& test() const;\r
+               \r
+       private:\r
+               unsigned int    _line;\r
+               std::string             _file;\r
+               std::string             _msg;\r
+               std::string             _suite;\r
+               std::string             _test;\r
+       };\r
+       \r
+} // namespace Test\r
+\r
+#endif // #ifndef CPPTEST_SOURCE_H\r
+\r