diff options
Diffstat (limited to 'Simulator/include/database/QueryResult.h')
| -rw-r--r-- | Simulator/include/database/QueryResult.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Simulator/include/database/QueryResult.h b/Simulator/include/database/QueryResult.h deleted file mode 100644 index c1534be3..00000000 --- a/Simulator/include/database/QueryResult.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#include <tuple> - -namespace Database -{ - template<class ...ReturnTypes> - class QueryResult - { - public: - explicit QueryResult(ReturnTypes... returnValues) : values(returnValues...) {} - explicit QueryResult(std::tuple<ReturnTypes...> returnValues) : values(returnValues) {} - - /* - Returns the item at the given index. - ReturnType must be the same as the type of the item at position Index in the tuple. - */ - template<class ReturnType, int Index> - ReturnType get() - { - return std::get<Index>(values); - } - - std::tuple<ReturnTypes...> values; - }; -} |
