aboutsummaryrefslogtreecommitdiff
path: root/pix_recNN/NNException.h
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2005-07-12 14:40:21 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2005-07-12 14:40:21 +0000
commit7c3c5dd0f8d7089bd50282e9dcd56e36798e18cf (patch)
tree156c00e6213b8c48e520d9eeee499ddce4c649be /pix_recNN/NNException.h
parent94d966b50ab1a09d8650b7c693e9223273a44acf (diff)
initial commit of pix_recNN
svn path=/trunk/externals/grh/; revision=3320
Diffstat (limited to 'pix_recNN/NNException.h')
-rwxr-xr-xpix_recNN/NNException.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/pix_recNN/NNException.h b/pix_recNN/NNException.h
new file mode 100755
index 0000000..bcb7be5
--- /dev/null
+++ b/pix_recNN/NNException.h
@@ -0,0 +1,49 @@
+/////////////////////////////////////////////////////////////////////////////
+//
+// NNDefines.h
+//
+// global stuff for all the nets
+//
+// header file
+//
+// Copyright (c) 2005 Georg Holzmann <grh@gmx.at>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+/////////////////////////////////////////////////////////////////////////////
+
+
+#ifndef _INCLUDE_NNDEFINES_NET__
+#define _INCLUDE_NNDEFINES_NET__
+
+#include <string>
+
+using std::string;
+
+namespace TheBrain
+{
+
+//------------------------------------------------------
+/* the exception class for all the neural network stuff
+ */
+class NNExcept
+{
+ protected:
+ string message_;
+
+ public:
+ NNExcept(string message="")
+ { message_ = message; }
+ virtual ~NNExcept() { }
+
+ virtual string what()
+ { return message_; }
+};
+
+} // end of namespace NNet
+
+#endif //_INCLUDE_NNDEFINES_NET__
+