17 #ifndef HPP_MANIPULATION_GRAPH_VALIDATION_REPORT_HH 18 # define HPP_MANIPULATION_GRAPH_VALIDATION_REPORT_HH 22 # include <hpp/core/validation-report.hh> 24 # include <hpp/manipulation/config.hh> 29 namespace manipulation {
42 : problem_ (problem) {}
52 bool hasErrors ()
const {
return !errors_.empty(); }
54 virtual std::ostream& print (std::ostream& os)
const;
72 bool validateEdge (
const EdgePtr_t & edge);
83 warnings_.push_back (Message (c, w));
88 errors_.push_back (Message (c, w));
91 typedef std::pair<GraphComponentPtr_t, std::string> Message;
92 std::vector<Message> warnings_, errors_;
108 #endif // HPP_MANIPULATION_GRAPH_VALIDATION_REPORT_HH boost::shared_ptr< GraphComponent > GraphComponentPtr_t
Definition: fwd.hh:43
void clear()
Definition: validation.hh:44
bool hasErrors() const
Definition: validation.hh:52
Validation(const core::ProblemPtr_t &problem)
Definition: validation.hh:41
boost::shared_ptr< State > StatePtr_t
Definition: fwd.hh:36
Definition: validation.hh:38
virtual std::ostream & print(std::ostream &os) const
std::ostream & operator<<(std::ostream &os, const GraphComponent &graphComp)
const Problem & problem() const
boost::shared_ptr< Edge > EdgePtr_t
Definition: fwd.hh:37
bool hasWarnings() const
Definition: validation.hh:50
boost::shared_ptr< Graph > GraphPtr_t
Definition: fwd.hh:35
boost::shared_ptr< Problem > ProblemPtr_t