iCub-main
WorldManager.h
Go to the documentation of this file.
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 /*
4 * Copyright (C) 2010 RobotCub Consortium, European Commission FP6 Project IST-004370
5 * Author: Paul Fitzpatrick
6 * email: paulfitz@alum.mit.edu
7 * website: www.robotcub.org
8 * Permission is granted to copy, distribute, and/or modify this program
9 * under the terms of the GNU General Public License, version 2 or any
10 * later version published by the Free Software Foundation.
11 *
12 * A copy of the license can be found at
13 * http://www.robotcub.org/icub/license/gpl.txt
14 *
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18 * Public License for more details
19 */
20 
21 #ifndef ICUBSIMULATION_WORLDMANAGER_INC
22 #define ICUBSIMULATION_WORLDMANAGER_INC
23 
24 #include <yarp/os/Bottle.h>
25 
26 #include "WorldOp.h"
27 
28 class WorldManager {
29 public:
30  virtual ~WorldManager() {}
31 
32  virtual bool respond(const yarp::os::Bottle &command,
33  yarp::os::Bottle &reply);
34 
35  virtual void clear() {
36  }
37 
38  virtual void apply(const WorldOp& op, WorldResult& result) = 0;
39 
40 };
41 
42 #endif
WorldManager::apply
virtual void apply(const WorldOp &op, WorldResult &result)=0
WorldManager::clear
virtual void clear()
Definition: WorldManager.h:35
WorldOp.h
WorldManager
Definition: WorldManager.h:28
WorldManager::~WorldManager
virtual ~WorldManager()
Definition: WorldManager.h:30
WorldManager::respond
virtual bool respond(const yarp::os::Bottle &command, yarp::os::Bottle &reply)
Definition: FakeWorldManager.cpp:13
WorldOp
Definition: WorldOp.h:114
WorldResult
Definition: WorldOp.h:138