Fawkes API  Fawkes Development Version
rcsoft_map_node.h
00001 
00002 /***************************************************************************
00003  *  rcsoft_map_node.h - Node used in RCSoftMapGraph
00004  *
00005  *  Created: Tue Jun 30 09:27:08 2009 (RoboCup 2009, Graz)
00006  *  Copyright  2009  Tim Niemueller [www.niemueller.de]
00007  *
00008  *  $Id: rcsoft_map_node.h 2826 2009-07-06 08:59:01Z tim $
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. A runtime exception applies to
00016  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00017  *
00018  *  This program is distributed in the hope that it will be useful,
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  *  GNU Library General Public License for more details.
00022  *
00023  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00024  */
00025 
00026 #ifndef __UTILS_GRAPH_RCSOFT_MAP_NODE_H_
00027 #define __UTILS_GRAPH_RCSOFT_MAP_NODE_H_
00028 
00029 #include <string>
00030 #include <vector>
00031 
00032 namespace fawkes {
00033 #if 0 /* just to make Emacs auto-indent happy */
00034 }
00035 #endif
00036 
00037 class RCSoftMapNode
00038 {
00039  public:
00040   RCSoftMapNode();
00041   RCSoftMapNode(std::string name, float x, float y,
00042                 std::vector<std::string> children,
00043                 std::vector<std::string> properties,
00044                 std::vector<std::string> aliases);
00045 
00046 
00047   const std::string &        name() const;
00048   float                      x() const;
00049   float                      y() const;
00050 
00051   std::vector<std::string> & properties();
00052   std::vector<std::string> & aliases();
00053   std::vector<std::string> & children();
00054 
00055   bool has_property(std::string property);
00056   bool has_alias(std::string property);
00057   bool is_valid() const;
00058 
00059  private:
00060   std::string __name;
00061   float       __x;
00062   float       __y;
00063   std::vector<std::string> __children;
00064   std::vector<std::string> __properties;
00065   std::vector<std::string> __aliases;
00066 };
00067 
00068 } // end of namespace fawkes
00069 
00070 #endif