From: Carle C. <car...@us...> - 2005-09-12 13:17:41
|
Update of /cvsroot/robotflow/RobotFlow/MARIE/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24516/MARIE/src Modified Files: Makefile.am Added Files: newMarieDataNull.cpp Log Message: add newMarieDataNull Index: Makefile.am =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/MARIE/src/Makefile.am,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** Makefile.am 7 Sep 2005 21:12:48 -0000 1.26 --- Makefile.am 12 Sep 2005 13:17:32 -0000 1.27 *************** *** 37,40 **** --- 37,41 ---- newMarieDataBumper.cpp \ newMarieDataMap.cpp \ + newMarieDataNull.cpp \ newMarieRequestSystem.cpp \ newMarieCommandBehavior.cpp \ --- NEW FILE: newMarieDataNull.cpp --- /* * MARIE - Mobile and Autonomous Robotics Integration Environment * Copyright (C) 2004 Dominic Letourneau * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * You can contact MARIE development team at http://marie.sourceforge.net */ #include "MarieObject.h" #include "MarieDataNull.h" #include "BufferedNode.h" #include <sstream> #include <string> using namespace std; using namespace FD; namespace marie { class newMarieDataNull; DECLARE_NODE(newMarieDataNull) /*Node * * @name newMarieDataNull * @category RobotFlow:MARIE:DATA * @description Create an object of type MarieObject containing a DataNull data * * @output_name DATA_NULL * @output_description Output MarieObject containing a DataNull data * @output_type MarieObject * END*/ using namespace std; class newMarieDataNull : public BufferedNode { private: int m_outputID; public: newMarieDataNull(string nodeName, ParameterSet params) : BufferedNode(nodeName,params) { //outputs m_outputID = addOutput("DATA_NULL"); } void calculate(int output_id, int count, Buffer &out) { //create new DataNull MarieDataNull *dNull = new MarieDataNull(); out[count] = ObjectRef(dNull); } };//class newMarieDataNull }//namespace marie |