# Leonetienne/Hazelnupp: Hazelnupp/DataType.h Source File

DataType.h
Go to the documentation of this file.
#pragma once
#include <string>
namespace Hazelnp
{
/** The different data types a paramater can be
*/
enum class DATA_TYPE
{
VOID,
INT,
FLOAT,
STRING,
LIST
};
static inline std::string DataTypeToString(DATA_TYPE type)
{
switch (type)
{
case DATA_TYPE::VOID:
return "VOID";
case DATA_TYPE::INT:
return "INT";
case DATA_TYPE::FLOAT:
return "FLOAT";
case DATA_TYPE::STRING:
return "STRING";
case DATA_TYPE::LIST:
return "LIST";
}
return "";
}
}
Hazelnp
Definition: CmdArgsInterface.h:9
Hazelnp::DATA_TYPE::VOID
@ VOID
Hazelnp::DATA_TYPE::LIST
@ LIST
Hazelnp::DATA_TYPE::FLOAT
@ FLOAT
Hazelnp::DATA_TYPE::INT
@ INT
Hazelnp::DATA_TYPE
DATA_TYPE
The different data types a paramater can be.
Definition: DataType.h:8
Hazelnp::DATA_TYPE::STRING
@ STRING
Hazelnp::DataTypeToString
static std::string DataTypeToString(DATA_TYPE type)
Definition: DataType.h:17