wbc
SceneConfig.hpp
Go to the documentation of this file.
1#ifndef SCENE_CONFIG_HPP
2#define SCENE_CONFIG_HPP
3
4#include <string>
5
6namespace wbc {
7
9public:
11 type("velocity"){
12 }
13 SceneConfig(const std::string type, const std::string file) :
14 type(type),
15 file(file){
16 }
17 void validate(){
18 if(type.empty())
19 throw std::runtime_error("Invalid scene config. Type must not be empty!");
20 }
21 std::string type;
22 std::string file;
23};
24
25}
26
27#endif
Definition ContactsAccelerationConstraint.cpp:3
Definition SceneConfig.hpp:8
std::string type
Definition SceneConfig.hpp:21
void validate()
Definition SceneConfig.hpp:17
SceneConfig()
Definition SceneConfig.hpp:10
std::string file
Definition SceneConfig.hpp:22
SceneConfig(const std::string type, const std::string file)
Definition SceneConfig.hpp:13