Skip to content
Snippets Groups Projects
Commit 4bf3ca56 authored by Pierre Gergondet's avatar Pierre Gergondet
Browse files

Fix some issues with the export

- No need to export template functions
- Expose some template instantiations
parent e9189ce2
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ namespace dynamicgraph { ...@@ -53,7 +53,7 @@ namespace dynamicgraph {
/// \li prototype of E::getParameter should be exactly as specified in this /// \li prototype of E::getParameter should be exactly as specified in this
/// example. /// example.
template <class E, typename T> template <class E, typename T>
class DYNAMIC_GRAPH_DLLAPI Getter : public Command { class Getter : public Command {
public: public:
/// Pointer to method that sets paramter of type T /// Pointer to method that sets paramter of type T
typedef T (E::*GetterMethod) () const; typedef T (E::*GetterMethod) () const;
......
...@@ -53,7 +53,7 @@ namespace dynamicgraph { ...@@ -53,7 +53,7 @@ namespace dynamicgraph {
/// \li prototype of E::setParameter should be exactly as specified in this /// \li prototype of E::setParameter should be exactly as specified in this
/// example. /// example.
template <class E, typename T> template <class E, typename T>
class DYNAMIC_GRAPH_DLLAPI Setter : public Command { class Setter : public Command {
public: public:
/// Pointer to method that sets paramter of type T /// Pointer to method that sets paramter of type T
typedef void (E::*SetterMethod) (const T&); typedef void (E::*SetterMethod) (const T&);
......
...@@ -48,8 +48,7 @@ namespace dynamicgraph ...@@ -48,8 +48,7 @@ namespace dynamicgraph
: SignalCastRegisterer (typeid(T), disp, cast, trace) : SignalCastRegisterer (typeid(T), disp, cast, trace)
{} {}
DYNAMIC_GRAPH_DLLAPI static boost::any cast (std::istringstream& iss);
static boost::any cast (std::istringstream& iss);
DYNAMIC_GRAPH_DLLAPI DYNAMIC_GRAPH_DLLAPI
static void disp (const boost::any& object, std::ostream& os) static void disp (const boost::any& object, std::ostream& os)
......
...@@ -115,6 +115,15 @@ namespace dynamicgraph { ...@@ -115,6 +115,15 @@ namespace dynamicgraph {
static const Value::Type TypeID; static const Value::Type TypeID;
}; };
template<> const Value::Type ValueHelper<bool>::TypeID = Value::BOOL;
template<> const Value::Type ValueHelper<unsigned>::TypeID = Value::UNSIGNED;
template<> const Value::Type ValueHelper<int>::TypeID = Value::INT;
template<> const Value::Type ValueHelper<float>::TypeID = Value::FLOAT;
template<> const Value::Type ValueHelper<double>::TypeID = Value::DOUBLE;
template<> const Value::Type ValueHelper<std::string>::TypeID = Value::STRING;
template<> const Value::Type ValueHelper<Vector>::TypeID = Value::VECTOR;
template<> const Value::Type ValueHelper<Matrix>::TypeID = Value::MATRIX;
} // namespace command } // namespace command
} //namespace dynamicgraph } //namespace dynamicgraph
......
...@@ -330,15 +330,5 @@ namespace dynamicgraph { ...@@ -330,15 +330,5 @@ namespace dynamicgraph {
return os; return os;
} }
/* ---- HELPER ---------------------------------------------------------- */
template<> const Value::Type ValueHelper<bool>::TypeID = Value::BOOL;
template<> const Value::Type ValueHelper<unsigned>::TypeID = Value::UNSIGNED;
template<> const Value::Type ValueHelper<int>::TypeID = Value::INT;
template<> const Value::Type ValueHelper<float>::TypeID = Value::FLOAT;
template<> const Value::Type ValueHelper<double>::TypeID = Value::DOUBLE;
template<> const Value::Type ValueHelper<std::string>::TypeID = Value::STRING;
template<> const Value::Type ValueHelper<Vector>::TypeID = Value::VECTOR;
template<> const Value::Type ValueHelper<Matrix>::TypeID = Value::MATRIX;
} // namespace command } // namespace command
} //namespace dynamicgraph } //namespace dynamicgraph
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment