hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
config-validations.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2014 CNRS
3 // Authors: Florent Lamiraux
4 //
5 // This file is part of hpp-core
6 // hpp-core is free software: you can redistribute it
7 // and/or modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation, either version
9 // 3 of the License, or (at your option) any later version.
10 //
11 // hpp-core is distributed in the hope that it will be
12 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Lesser Public License for more details. You should have
15 // received a copy of the GNU Lesser General Public License along with
16 // hpp-core If not, see
17 // <http://www.gnu.org/licenses/>.
18 
19 #ifndef HPP_CORE_CONFIG_VALIDATIONS_HH
20 # define HPP_CORE_CONFIG_VALIDATIONS_HH
21 
23 # include <hpp/core/obstacle-user.hh>
24 
25 namespace hpp {
26  namespace core {
29 
32  class HPP_CORE_DLLAPI ConfigValidations :
33  public ConfigValidation,
34  public ObstacleUserVector<ConfigValidationPtr_t>
35  {
36  public:
38 
46  virtual bool validate (const Configuration_t& config,
47  ValidationReportPtr_t& validationReport);
49  void add (const ConfigValidationPtr_t& configValidation);
50 
52  size_type numberConfigValidations() const;
53 
54  // Clear the vector of config validations
55  void clear ();
56 
57  protected:
59  }; // class ConfigValidation
61  } // namespace core
62 } // namespace hpp
63 
64 #endif // HPP_CORE_CONFIG_VALIDATIONS_HH
boost::shared_ptr< ConfigValidations > ConfigValidationsPtr_t
Definition: fwd.hh:106
boost::shared_ptr< ValidationReport > ValidationReportPtr_t
Definition: fwd.hh:206
Definition: obstacle-user.hh:83
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
pinocchio::size_type size_type
Definition: fwd.hh:156
boost::shared_ptr< ConfigValidation > ConfigValidationPtr_t
Definition: fwd.hh:105
Definition: config-validations.hh:32
Definition: config-validation.hh:35
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:96