You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/* PlipInputDefinition.h
|
|
|
|
*
|
|
|
|
* Allows the core to define an input for the frontend to handle.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace Plip {
|
|
|
|
union PlipInputData {
|
|
|
|
bool digital = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class PlipInputType {
|
|
|
|
Digital
|
|
|
|
};
|
|
|
|
|
|
|
|
class PlipInputDefinition final {
|
|
|
|
public:
|
|
|
|
PlipInputDefinition(PlipInputType type, const std::string &description);
|
|
|
|
|
|
|
|
PlipInputData GetData() const;
|
|
|
|
std::string GetDescription() const;
|
|
|
|
PlipInputType GetType() const;
|
|
|
|
void SetData(PlipInputData data);
|
|
|
|
|
|
|
|
private:
|
|
|
|
PlipInputData m_data;
|
|
|
|
std::string m_description;
|
|
|
|
PlipInputType m_type;
|
|
|
|
};
|
|
|
|
}
|