------------------------------------------------------------ revno: 21 committer: Rick Stovall <fpstovall> branch nick: ricks-sprint-003 timestamp: Sun 2013-08-18 20:38:55 -0400 message: * Created a new Makefile for use with all simengine components which should require only a one line change for component. * Roughed out the file structure for the simulation engine control interface. Compiles, but is do-nothing code. Not complete yet. added: cpp/sim_engine/control_interface/ cpp/sim_engine/control_interface/Makefile cpp/sim_engine/control_interface/control_interface.cpp cpp/sim_engine/control_interface/control_interface.h cpp/sim_engine/control_interface/control_interface_test.cpp
-- lp:~fpstovall/nrtb/fps-sprint-003 https://code.launchpad.net/~fpstovall/nrtb/fps-sprint-003 Your team NRTB Core is subscribed to branch lp:~fpstovall/nrtb/fps-sprint-003. To unsubscribe from this branch go to https://code.launchpad.net/~fpstovall/nrtb/fps-sprint-003/+edit-subscription
=== added directory 'cpp/sim_engine/control_interface' === added file 'cpp/sim_engine/control_interface/Makefile' --- cpp/sim_engine/control_interface/Makefile 1970-01-01 00:00:00 +0000 +++ cpp/sim_engine/control_interface/Makefile 2013-08-19 00:38:55 +0000 @@ -0,0 +1,47 @@ +#*********************************************** +# This file is part of the NRTB project (https://launchpad.net/nrtb). +# +# NRTB 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. +# +# NRTB 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 NRTB. If not, see <http://www.gnu.org/licenses/>. +# +#*********************************************** + +target=control_interface + +lib: ${target}_test + @./${target}_test + @cp -v ${target}.h ../include/ + @cp -v ${target}.o ../obj/ + @echo build complete + +${target}_test: ${target}.o ${target}_test.cpp + @rm -f ${target}_test + g++ -c -O3 ${target}_test.cpp -I ../include ${bargs} + g++ -o ${target}_test ${target}_test.o ${target}.o ${largs} + + +${target}.o: ${target}.cpp ${target}.h Makefile + @rm -f ${target}.o + g++ -c -O3 ${target}.cpp -I ../include ${bargs} + +clean: + @rm -vf *.o ../include/${target}.h ../obj/${target}.o ${target}_test + @echo all objects and executables have been erased. + +switches=-std=gnu++11 -D _GLIBCXX_USE_SCHED_YIELD -D _GLIBCXX_USE_NANOSLEEP +libs=../../common/lib/nrtb_common.a -lpthread +include=-I../../common/include -I../include +bargs=${switches} ${include} +largs=${switches} ${libs} + + === added file 'cpp/sim_engine/control_interface/control_interface.cpp' --- cpp/sim_engine/control_interface/control_interface.cpp 1970-01-01 00:00:00 +0000 +++ cpp/sim_engine/control_interface/control_interface.cpp 2013-08-19 00:38:55 +0000 @@ -0,0 +1,27 @@ +/*********************************************** + This file is part of the NRTB project (https://*launchpad.net/nrtb). + + NRTB 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. + + NRTB 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 NRTB. If not, see <http://www.gnu.org/licenses/>. + + **********************************************/ + +// see base_socket.h for documentation + +#include "control_interface.h" + +namespace nrtb +{ + +} // namespace nrtb + === added file 'cpp/sim_engine/control_interface/control_interface.h' --- cpp/sim_engine/control_interface/control_interface.h 1970-01-01 00:00:00 +0000 +++ cpp/sim_engine/control_interface/control_interface.h 2013-08-19 00:38:55 +0000 @@ -0,0 +1,29 @@ +/*********************************************** + This file is part of the NRTB project (https://*launchpad.net/nrtb). + + NRTB 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. + + NRTB 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 NRTB. If not, see <http://www.gnu.org/licenses/>. + + **********************************************/ + +#ifndef control_interface_header +#define control_interface_header + +#include <base_socket.h> + +namespace nrtb +{ + +} // namepace nrtb + +#endif // control_interface_header === added file 'cpp/sim_engine/control_interface/control_interface_test.cpp' --- cpp/sim_engine/control_interface/control_interface_test.cpp 1970-01-01 00:00:00 +0000 +++ cpp/sim_engine/control_interface/control_interface_test.cpp 2013-08-19 00:38:55 +0000 @@ -0,0 +1,60 @@ +/*********************************************** + This file is part of the NRTB project (https://*launchpad.net/nrtb). + + NRTB 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. + + NRTB 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 NRTB. If not, see <http://www.gnu.org/licenses/>. + + **********************************************/ + +#include "control_interface.h" + +using namespace nrtb; +using namespace std; + + +int main() +{ + cout << "=========== tcp_socket and server test =============" + << endl; + + cout << "=========== tcp_socket and server test complete =============" + << endl; + +}; + + + + + + + + + + + + + + + + + + + + + + + + + + +
_______________________________________________ Mailing list: https://launchpad.net/~nrtb-core Post to : [email protected] Unsubscribe : https://launchpad.net/~nrtb-core More help : https://help.launchpad.net/ListHelp

