mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 01:09:34 -05:00
Update new ghoul string conversions
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <openspace/interaction/websocketinputstate.h>
|
||||
#include <ghoul/misc/boolean.h>
|
||||
#include <ghoul/misc/fromstring.h>
|
||||
#include <ghoul/misc/stringconversion.h>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
@@ -103,14 +103,11 @@ private:
|
||||
|
||||
} // namespace openspace::interaction
|
||||
|
||||
namespace std {
|
||||
|
||||
std::string to_string(const openspace::interaction::WebsocketCameraStates::AxisType& type);
|
||||
|
||||
} // namespace std
|
||||
|
||||
namespace ghoul {
|
||||
|
||||
template <>
|
||||
std::string to_string(const openspace::interaction::WebsocketCameraStates::AxisType& type);
|
||||
|
||||
template <>
|
||||
openspace::interaction::WebsocketCameraStates::AxisType
|
||||
from_string(const std::string& string);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#ifndef __OPENSPACE_CORE___WEBSOCKETINPUTSTATE___H__
|
||||
#define __OPENSPACE_CORE___WEBSOCKETINPUTSTATE___H__
|
||||
|
||||
#include <ghoul/misc/fromstring.h>
|
||||
#include <ghoul/misc/stringconversion.h>
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
@@ -112,14 +112,11 @@ struct WebsocketInputStates : public std::unordered_map<size_t, WebsocketInputSt
|
||||
|
||||
} // namespace openspace::interaction
|
||||
|
||||
namespace std {
|
||||
|
||||
std::string to_string(openspace::interaction::WebsocketAction action);
|
||||
|
||||
} // namespace std
|
||||
|
||||
namespace ghoul {
|
||||
|
||||
template <>
|
||||
std::string to_string(const openspace::interaction::WebsocketAction& action);
|
||||
|
||||
template <>
|
||||
openspace::interaction::WebsocketAction from_string(const std::string& str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user