From 1f65c8a26b7265d47522c794031bb5c10953aa04 Mon Sep 17 00:00:00 2001 From: blacklight Date: Fri, 7 Aug 2009 15:55:59 +0200 Subject: [PATCH] Fixed a lot of stuff, Makefile fixed, but it's not over yet --- Makefile | 36 ++++++++++++++++++++ examples/adder.net | Bin 188 -> 188 bytes examples/adderFromScratch | Bin 21182 -> 0 bytes examples/adderFromScratch.cpp | 2 +- examples/doAdd | Bin 21465 -> 0 bytes examples/doAdd.cpp | 2 +- examples/learnAdd | Bin 10488 -> 0 bytes examples/learnAdd.cpp | 2 +- include/{neural++.h => neural++.hpp} | 27 +++------------ include/neural++_exception.hpp | 47 +++++++++++++++++++++++++++ src/Markup.cpp | 6 ++-- src/layer.cpp | 3 +- src/neuralnet.cpp | 2 +- src/neuron.cpp | 2 +- src/synapsis.cpp | 3 +- 15 files changed, 100 insertions(+), 32 deletions(-) create mode 100644 Makefile delete mode 100755 examples/adderFromScratch delete mode 100755 examples/doAdd delete mode 100755 examples/learnAdd rename include/{neural++.h => neural++.hpp} (94%) create mode 100644 include/neural++_exception.hpp diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..43c681a --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +SRCDIR=src +INCLUDEDIR=include +PREFIX=/usr +LIB=neural++ +CC=g++ +CFLAGS=-Wall -pedantic -pedantic-errors + +all: + ${CC} -I${INCLUDEDIR} ${CFLAGS} -fPIC -g -c ${SRCDIR}/neuralnet.cpp + ${CC} -I${INCLUDEDIR} ${CFLAGS} -fPIC -g -c ${SRCDIR}/layer.cpp + ${CC} -I${INCLUDEDIR} ${CFLAGS} -fPIC -g -c ${SRCDIR}/neuron.cpp + ${CC} -I${INCLUDEDIR} ${CFLAGS} -fPIC -g -c ${SRCDIR}/synapsis.cpp + ${CC} -I${INCLUDEDIR} ${CFLAGS} -fPIC -g -c ${SRCDIR}/Markup.cpp + ${CC} -shared -Wl,-soname,lib$(LIB).so.0 -o lib${LIB}.so.0.0.0 neuralnet.o layer.o neuron.o synapsis.o Markup.o + ar rcs lib${LIB}.a neuralnet.o layer.o neuron.o synapsis.o Markup.o + +install: + mkdir -p ${PREFIX}/lib + mkdir -p ${PREFIX}/${INCLUDEDIR} + install -m 0755 lib${LIB}.so.0.0.0 ${PREFIX}/lib/lib${LIB}.so.0.0.0 + install -m 0644 lib${LIB}.a ${PREFIX}/lib/lib${LIB}.a + install -m 0644 ${INCLUDEDIR}/${LIB}.hpp ${PREFIX}/${INCLUDEDIR} + install -m 0644 ${INCLUDEDIR}/${LIB}_exception.hpp ${PREFIX}/${INCLUDEDIR} + ln -sf ${PREFIX}/lib/lib${LIB}.so.0.0.0 ${PREFIX}/lib/lib${LIB}.so.0 + +uninstall: + rm ${PREFIX}/lib/lib${LIB}.a + rm ${PREFIX}/${INCLUDEDIR}/${LIB}.hpp + rm ${PREFIX}/${INCLUDEDIR}/${LIB}_exception.hpp + rm ${PREFIX}/lib/lib${LIB}.so.0.0.0 + rm ${PREFIX}/lib/lib${LIB}.so.0 + +clean: + rm *.o + rm lib${LIB}.so.0.0.0 + rm lib${LIB}.a diff --git a/examples/adder.net b/examples/adder.net index d7c14b81db3e24a5f7ec1b5efe4db921a19b5d5b..ae58fe01faa5ab649e3b043a20b2c9fa32d4609d 100644 GIT binary patch literal 188 zcmZQ#U|?VZVn!eqP-kG^y1sZf1H&vQ1_l-=HUQEFPW%3_fU#F_mlFuTVVnoXAie7> ztL=dl!?w$XU>YP=J|o`-Bqn<<8ZI`^ArZ_@RkeVNHJ*a#z4v_*SUpIuT6_^$-e-Oc OmSCCki)sob4NaCA|4L6~#lhB$cm&Q)6{8MZvu1g*2a#P14HAxQ<%_Wbip$+NY z_nkSjd-h1!j<28Q_TGWnnRmW#X1sDz1-vR2<^P0N)YY;qA$>h@ECvK z8bz%Lh`D06xLiz-7-`$U11~cmlOO3m_$tzY8}9=h{vu#{(pWaVbj%CidW{hD%r9yb zU8X$^8vI^lIOP?xUeXa2cYyy6(C95-ddkH*=vN}oO4LnX3rw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Z#B@jEU?q2^+gx|Nnoc( zcG|SA19sZ9KH%bi9N1~o`rm>1feF_E>i;Xi{BVpFPV-(Y{sEYu`fUWJevJYodSko7aB?cG|pNhAq#s<)h8(JYc8I>l$FE z&Fd%0|7h7p_zS?=QNBNS;UBp$|4@R{=GAS(dK>6Yo7X|L17^X(7OvlT0$x9Jg7hcE3v(nls3KQ38A{fnNgt=n%x}{52n`WD- z%o}K33ri5(+$6iUnBCcQA(KpX!zQK2w#;aRkr3bg!R&=yB293CU_1&#T4k#S11;jZ zB#o+QsbeP7@`48zCebbv)+ctY>y|GM8?aPavUIh<-XjyPV6u@d(x##!!M3$%y>0E1 zHEqiTuW+>e1?r%YN=u8=wt_XE*8pcM>-#cW4%1#|v%4^-Rq7Zs(*FZ%W`}`_T_x;H zXi{QZso<8dWL~T69)AmV&-O5#-{kxMbMxnnnYahDg63Z?z0sD@WxFgF1N*en1nW1} zzTc8%wcCoStiI9`O->^&FJl_~PS&6fgX}RKLnASFVeiY1&s9j}n>};m`?3U=7JaUQ z&5HGmR;~XRTZ`LfeXb@zJ#)4J-&l(LGYs0w5q6XB*S@^cKyv(gO7`dYV+V!2i^q)R z(q;l%72X&))=jlN$<6A6v{{FKxa$9Z%#7V>2Kml^#sky!12$=wHnQW*^zqER|MMHW z+cv4TK1mZ(ZFAe@QZgE(YMQpkb+Np|23=voZ=2hyQ=!{F*j*-Ub>Ekbvb&t|1`vDQ zZ_7^KHu=Ts@ZQb!*GlaiXM-Nc8oQ;%VIN#+uZ*6t4U6U9z4_1a7XZv;)1syz|HMru u3Y+pm>h54?zf?&12L*l$e;7bL+t`adc30P*0C?|z9e}e+S+ZB^?EeOSts3J1 diff --git a/examples/adderFromScratch.cpp b/examples/adderFromScratch.cpp index 652e343..f7ed63e 100644 --- a/examples/adderFromScratch.cpp +++ b/examples/adderFromScratch.cpp @@ -6,7 +6,7 @@ */ #include -#include +#include using namespace neuralpp; int main() { diff --git a/examples/doAdd b/examples/doAdd deleted file mode 100755 index a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G;EpFyAjI2McY%df9ha|Cm=lez%d;T&x&@brw6x|wY=-54c6MuXcyfUtra!s zhUHpPB4_nxa^3LF6el3`Rxxn8kLRaO-mtGrtYhCi9;7rS0cAGkqF20_=tbi+MAXwU29pLmi$_uuCMTYz;RHzXNT2W z$d&SVIS99mK6tCq^Rg8#H293)hGz%mApB#2;IRoWSLwM0mnP!oG~Fxd$6}>(;?xK} z74aSm{uXYnH?3S5HQ}4FblF;yA|n&dbqcW^!bPAa!gU>3@#b|)Z|q!d@LWi_6QB;d zWps21Ujo-V;Iuv_6Iox5PjRh(inmPNacY87<{#j3EF4Ls+l5;tyeH^0;rd?S1hV4V zs{7AK*UG9#q>k-Z!e!YVA>pf8@rcu1vH#z5nSMdKyX8c^sCCVp;2-9CF6XV(c9caw zDUaGIr{=0ZlZRoV>k>VTyiBgAl{fmdI{jziEA919a(gHokT5u!v*U!ZkrT#s`uBKg zaa_E@dRe}4o z%Sse;Rtn1$UO{NaQZ7wmp?W11;$MDxk96HfUV6-Wnm@Tu zvOb1%SfwAS*VEQh&}nufHFA&(Yps*6UY*#w diff --git a/examples/doAdd.cpp b/examples/doAdd.cpp index bc3aa65..2203d3c 100644 --- a/examples/doAdd.cpp +++ b/examples/doAdd.cpp @@ -6,7 +6,7 @@ */ #include -#include +#include using namespace neuralpp; #define NETFILE "adder.net" diff --git a/examples/learnAdd b/examples/learnAdd deleted file mode 100755 index 716c520e5ab11a50491fea9f8e3ed3fa1b5fa335..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10488 zcmd5?eQ;FQb-!Vz3}atYs6|?X*ps)^R)Ov`y-1`bRqMbQEB4Ni!YB{hZY8kcM;?qjc2PEli=^ z{(kqpE3KaK)b)5Wz0%op&pqd!d+)jTo_D{Vk9Td+G)<@w5@A8=z*r>OLR{~0T7)j5 zVx?FvmWf&n3cL_mYei8Hez~T(} z02>(=hlDJbd_+Y(a6Nd0GH3$p#WD!nkY^jpCg`9Eir4*PH}%MTAs%@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EXeC!dBGG}!HUwrT_M?mO*e+Sb$ z`)x@uzyAOvkZh)$oM~go;e?>7L%m_P2d_hd@>P#G{I@N)Gv4hU?R?0i96klP{VSiD zmpT3mlB&lv!D@Z*@l0D=)x(n6Pg#)Je|v(dv95KUfqODDpEO;&m_2Cpj|guLOC$Ub DXs(77 diff --git a/examples/learnAdd.cpp b/examples/learnAdd.cpp index 4afda5a..2ea674c 100644 --- a/examples/learnAdd.cpp +++ b/examples/learnAdd.cpp @@ -7,7 +7,7 @@ */ #include -#include +#include using namespace neuralpp; int main() { diff --git a/include/neural++.h b/include/neural++.hpp similarity index 94% rename from include/neural++.h rename to include/neural++.hpp index e4f27ca..85d6e7e 100644 --- a/include/neural++.h +++ b/include/neural++.hpp @@ -11,18 +11,21 @@ * this program. If not, see . * **************************************************************************************************/ -#ifdef __cplusplus +#ifndef __cplusplus +#error "This is a C++ library, you know, so you'd better use a C++ compiler to compile it" +#else #ifndef __NEURALPP #define __NEURALPP #include #include -#include #include #include #include + +#include "neural++_exception.hpp" using namespace std; namespace neuralpp { @@ -36,26 +39,6 @@ namespace neuralpp { class NetworkFileNotFoundException; class InvalidXMLException; - /** - * @class NetworkFileNotFoundException - * @brief Exception thrown when doing an attempt to load a network from an invalid file - */ - class NetworkFileNotFoundException : public exception { - public: - NetworkFileNotFoundException() {} - const char* what() const throw() { return strdup("Attempt to load a neural network from an invalid network file\n"); } - }; - - /** - * @class InvalidXMLException - * @brief Exception thrown when trying parsing an invalid XML - */ - class InvalidXMLException : public exception { - public: - InvalidXMLException() {} - const char* what() const throw() { return strdup("Attempt to load an invalid XML file\n"); } - }; - /** * @class NeuralNet * @brief Main project's class. Use *ONLY* this class, unless you know what you're doing diff --git a/include/neural++_exception.hpp b/include/neural++_exception.hpp new file mode 100644 index 0000000..fee799a --- /dev/null +++ b/include/neural++_exception.hpp @@ -0,0 +1,47 @@ +/************************************************************************************************** + * LibNeural++ v.0.2 - All-purpose library for managing neural networks * + * Copyright (C) 2009, BlackLight * + * * + * 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 3 of * + * the License, or (at your option) any later version. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * + * more details. You should have received a copy of the GNU General Public License along with * + * this program. If not, see . * + **************************************************************************************************/ + +#ifndef __cplusplus +#error "This is a C++ library, you know, so you'd better use a C++ compiler to compile it" +#else + +#ifndef __NEURALPP_EXCEPTION +#define __NEURALPP_EXCEPTION + +#include + +namespace neuralpp { + /** + * @class NetworkFileNotFoundException + * @brief Exception thrown when doing an attempt to load a network from an invalid file + */ + class NetworkFileNotFoundException : public std::exception { + public: + NetworkFileNotFoundException() {} + const char* what() const throw() { return "Attempt to load a neural network from an invalid network file"; } + }; + + /** + * @class InvalidXMLException + * @brief Exception thrown when trying parsing an invalid XML + */ + class InvalidXMLException : public std::exception { + public: + InvalidXMLException() {} + const char* what() const throw() { return "Attempt to load an invalid XML file"; } + }; +} + +#endif +#endif + diff --git a/src/Markup.cpp b/src/Markup.cpp index 03ec7fa..e295d18 100644 --- a/src/Markup.cpp +++ b/src/Markup.cpp @@ -130,7 +130,7 @@ bool CMarkup::SetDoc( MCD_PCSZ pDoc ) MCD_STRCLEAR(m_strError); return x_ParseDoc(); -}; +} bool CMarkup::SetDoc( const MCD_STR& strDoc ) { @@ -1386,7 +1386,7 @@ bool CMarkup::x_ParseDoc() } return IsWellFormed(); -}; +} int CMarkup::x_ParseElem( int iPosParent, TokenPos& token ) { @@ -1675,7 +1675,7 @@ int CMarkup::x_ParseNode( CMarkup::TokenPos& token, CMarkup::NodePos& node ) PD_DOCTYPE = 32, PD_INQUOTE_S = 64, PD_INQUOTE_D = 128, - PD_EQUALS = 256, + PD_EQUALS = 256 }; int nParseFlags = 0; diff --git a/src/layer.cpp b/src/layer.cpp index 451a9f1..c41370a 100644 --- a/src/layer.cpp +++ b/src/layer.cpp @@ -11,7 +11,8 @@ * this program. If not, see . * **************************************************************************************************/ -#include "neural++.h" +#include +#include "neural++.hpp" using namespace neuralpp; /** diff --git a/src/neuralnet.cpp b/src/neuralnet.cpp index 0cfce80..55caba9 100644 --- a/src/neuralnet.cpp +++ b/src/neuralnet.cpp @@ -11,7 +11,7 @@ * this program. If not, see . * **************************************************************************************************/ -#include "neural++.h" +#include "neural++.hpp" #include "Markup.h" #include using namespace neuralpp; diff --git a/src/neuron.cpp b/src/neuron.cpp index 037ca5f..73de928 100644 --- a/src/neuron.cpp +++ b/src/neuron.cpp @@ -11,7 +11,7 @@ * this program. If not, see . * **************************************************************************************************/ -#include "neural++.h" +#include "neural++.hpp" using namespace neuralpp; /** diff --git a/src/synapsis.cpp b/src/synapsis.cpp index cefd1ce..a2ff47f 100644 --- a/src/synapsis.cpp +++ b/src/synapsis.cpp @@ -11,7 +11,8 @@ * this program. If not, see . * **************************************************************************************************/ -#include "neural++.h" +#include +#include "neural++.hpp" using namespace neuralpp; /**