SCL  1.0
Standard Control Library : Control, dynamics, physics, and simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
DbRegisterFunctions.hpp
Go to the documentation of this file.
1 /* This file is part of scl, a control and simulation library
2 for robots and biomechanical models.
3 
4 scl is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 3 of the License, or (at your option) any later version.
8 
9 Alternatively, you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of
12 the License, or (at your option) any later version.
13 
14 scl is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU Lesser General Public
20 License and a copy of the GNU General Public License along with
21 scl. If not, see <http://www.gnu.org/licenses/>.
22 */
23 /* \file DbRegisterFunctions.cpp
24  *
25  * Created on: Jul 2, 2010
26  *
27  * Copyright (C) 2010
28  *
29  * Author: Samir Menon <smenon@stanford.edu>
30  */
31 
32 /* These are a set of functions to register various data objects
33  * with the database.
34  *
35  * Simplify dealing with external data sources and with
36  * data shared across different components.
37  */
38 
41 #ifndef DBREGISTERFUNCTIONS_HPP_
42 #define DBREGISTERFUNCTIONS_HPP_
43 
44 #include <string>
45 
47 
48 #include <scl/parser/CParserBase.hpp>
49 
50 #include <scl/dynamics/tao/CDynamicsTao.hpp>
51 
52 namespace scl_registry
53 {
78  bool parseEverythingInFile(const std::string &arg_file,
79  scl::CParserBase *arg_parser,
80  std::vector<std::string>* arg_robots_parsed=S_NULL,
81  std::vector<std::string>* arg_graphics_parsed=S_NULL,
82  std::vector<std::string>* arg_ui_parsed=S_NULL);
83 
101  const scl::SRobotParsed*
102  parseRobot(const std::string &arg_file,
103  const std::string &arg_robot_name,
104  scl::CParserBase *arg_parser);
105 
120  const scl::SGraphicsParsed*
121  parseGraphics(const std::string &arg_file,
122  const std::string & arg_graphics_name,
123  scl::CParserBase *arg_parser);
124 
138  const scl::SUIParsed*
139  parseUI(const std::string &arg_file,
140  const std::string & arg_ui_name,
141  scl::CParserBase *arg_parser);
142 
143  enum EControllerType{CONTROLLER_TYPE_GC=0, CONTROLLER_TYPE_TASK=1};
152  scl::SControllerGc * parseGcController(const std::string &arg_file,
153  const std::string &arg_robot_name,
154  const std::string &arg_ctrl_name,
155  scl::CParserBase *arg_parser);
156 
165  scl::SControllerMultiTask * parseTaskController(const std::string &arg_file,
166  const std::string &arg_robot_name,
167  const std::string &arg_ctrl_name,
168  scl::CParserBase *arg_parser);
169 
171  scl::sBool registerNativeDynamicTypes();
172 }
173 
174 #endif /* DBREGISTERFUNCTIONS_HPP_ */
Definition: SControllerMultiTask.hpp:54
Definition: SRobotParsed.hpp:51
Definition: CParserBase.hpp:56
Definition: SUIParsed.hpp:55
bool sBool
Definition: DataTypes.hpp:54
Definition: SGraphicsParsed.hpp:48
Definition: SControllerGc.hpp:55