00001 /*************************************************************************** 00002 tag: The SourceWorks Tue Sep 7 00:54:57 CEST 2010 operations_fixture2.cpp 00003 00004 operations_fixture2.cpp - description 00005 ------------------- 00006 begin : Tue September 07 2010 00007 copyright : (C) 2010 The SourceWorks 00008 email : peter@thesourceworks.com 00009 00010 *************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 00019 00020 #define BOOST_FUSION_INVOKE_MAX_ARITY 8 00021 #define BOOST_FUSION_UNFUSED_MAX_ARITY 7 00022 00023 #include "operations_fixture.hpp" 00024 #include <iostream> 00025 #include <TaskContext.hpp> 00026 #include <OperationCaller.hpp> 00027 #include <Operation.hpp> 00028 #include <Service.hpp> 00029 00030 using namespace std; 00031 using namespace boost; 00032 using namespace RTT; 00033 using namespace RTT::detail; 00034 00035 void OperationsFixture::createOperationCallerFactories2(TaskContext* target) 00036 { 00037 Service::shared_ptr to = target->provides("methods"); 00038 // ClientThread 00039 to->addOperation("m2", &OperationsFixture::m2, this).doc("M2").arg("a", "ad").arg("a", "ad"); 00040 00041 // OwnThread 00042 to->addOperation("o2", &OperationsFixture::m2, this, OwnThread).doc("M2").arg("a", "ad").arg("a", "ad"); 00043 }