From 272d30bba660b87f99d72936897450669ef74fdb Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Fri, 10 Mar 2017 14:27:23 +0100 Subject: [PATCH] prepare introspection of algorithms --- alib2common/src/introspection/Algorithms.hpp | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 alib2common/src/introspection/Algorithms.hpp diff --git a/alib2common/src/introspection/Algorithms.hpp b/alib2common/src/introspection/Algorithms.hpp new file mode 100644 index 0000000000..bfb1c3eaec --- /dev/null +++ b/alib2common/src/introspection/Algorithms.hpp @@ -0,0 +1,37 @@ +/* + * Algorithms.hpp + * + * Created on: 12. 2. 2017 + * Author: Jan Travnicek + */ + +#ifndef _ALGORITHMS_HPP_ +#define _ALGORITHMS_HPP_ + +namespace introspection { + +class Algorithms { + static std::map < std::string, std::set < std::tuple < std::string, std::vector < std::string >, std::vector < std::string >, std::vector < std::string > > > > & algorithmCallbacks ( ) { + static std::map < std::string, std::set < std::tuple < std::string, std::vector < std::string >, std::vector < std::string >, std::vector < std::string > > > > res; + return res; + } + + static std::set < std::string > & algorithms ( ) { + static std::set < std::string > res; + return res; + } + +public: + const std::map < std::string, std::set < std::tuple < std::string, std::vector < std::string >, std::vector < std::string >, std::vector < std::string > > > > & getTypesInGroup ( ) { + return typesInGroup ( ); + } + + const std::set < std::string > & getGroups ( ) { + return groups ( ); + } + +}; + +} /* namespace introspection */ + +#endif /* _ALGORITHMS_HPP_ */ -- GitLab