Files
sciterui/include/sciter_value.h
T
2025-03-19 09:27:34 +10:30

29 lines
477 B
C++

#pragma once
#include <stdint.h>
#include <string>
class SciterValue
{
enum VALUE_TYPE
{
TYPE_UNDEFINED = 0,
TYPE_BOOL = 1,
TYPE_INT32_T = 2,
TYPE_STRING = 3,
};
public:
SciterValue();
SciterValue(bool Value);
SciterValue(int32_t Value);
SciterValue(std::string Value);
~SciterValue();
int32_t GetValueInt(void) const;
private:
uint32_t m_type;
uint32_t m_valueInt;
std::string m_valueStr;
};