GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: src/dynamic_graph/factory-py.cc Lines: 0 4 0.0 %
Date: 2022-09-30 08:22:45 Branches: 0 6 0.0 %

Line Branch Exec Source
1
// Copyright 2010, Florent Lamiraux, Thomas Moulard, LAAS-CNRS.
2
3
#include <dynamic-graph/factory.h>
4
5
#include <iostream>
6
7
#include "dynamic-graph/python/dynamic-graph-py.hh"
8
9
using dynamicgraph::Entity;
10
using dynamicgraph::ExceptionAbstract;
11
12
namespace dynamicgraph {
13
namespace python {
14
15
namespace factory {
16
17
/**
18
   \brief Get name of entity
19
*/
20
bp::tuple getEntityClassList() {
21
  std::vector<std::string> classNames;
22
  dynamicgraph::FactoryStorage::getInstance()->listEntities(classNames);
23
  return to_py_tuple(classNames.begin(), classNames.end());
24
}
25
26
}  // namespace factory
27
}  // namespace python
28
}  // namespace dynamicgraph