operations_fixture1.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002   tag: The SourceWorks  Tue Sep 7 00:54:57 CEST 2010  operations_fixture1.cpp
00003 
00004                         operations_fixture1.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::createOperationCallerFactories1(TaskContext* target)
00036 {
00037     Service::shared_ptr to = target->provides("methods");
00038     // ClientThread
00039     to->addOperation("m1r", &OperationsFixture::m1r, this).doc("M1r");
00040     to->addOperation("m1cr", &OperationsFixture::m1cr, this).doc("M1cr");
00041 
00042     to->addOperation("m1", &OperationsFixture::m1, this).doc("M1").arg("a", "ad");
00043 
00044     // OwnThread
00045     to->addOperation("o1r", &OperationsFixture::m1r, this, OwnThread).doc("M1r");
00046     to->addOperation("o1cr", &OperationsFixture::m1cr, this, OwnThread).doc("M1cr");
00047 
00048     to->addOperation("o1", &OperationsFixture::m1, this, OwnThread).doc("M1").arg("a", "ad");
00049 }


rtt
Author(s): RTT Developers
autogenerated on Wed Aug 26 2015 16:15:50