|
xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
|
Facilities for describing the data contained in Xentara attributes. More...
Classes | |
| class | DataType |
| A complete data type, including bit size information. More... | |
Enumerations | |
| enum class | PrimitiveType { Boolean , Integer , UnsignedInteger , FloatingPoint , String , TimePoint , Uuid , Quality , ElementCategory , ErrorCode , Custom , Unknown } |
| PrimitiveType types used in attributes. More... | |
Functions | |
| constexpr auto | defaultBitSize (PrimitiveType primitiveType) noexcept -> int |
| Gets a suitable default bit size for a primitive type. | |
| constexpr auto | correctedBitSize (PrimitiveType primitiveType, int bitSize) noexcept -> int |
| Adjusts a bit size to be suitable a primitive type. | |
Facilities for describing the data contained in Xentara attributes.
This namespace contains types used to describe the data type of the values of Xentara attributes.
|
strong |
PrimitiveType types used in attributes.
PrimitiveType types to not include the bit width of integers and floating point numbers
#include <xentara/workbench/data/PrimitiveType.hpp>
|
constexprnoexcept |
Adjusts a bit size to be suitable a primitive type.
This function corrects the bit size to be a suitable bit size for the given primitive type. The function does the following:
| primitiveType | The primitive type |
| bitSize | The bit size to correct |
#include <xentara/workbench/data/PrimitiveType.hpp>
|
constexprnoexcept |
Gets a suitable default bit size for a primitive type.
The return bit size is as follows:
| PrimitiveType Type | Bit Size |
|---|---|
| Boolean | 1 |
| Integer | 32 |
| UnsignedInteger | 32 |
| FloatingPoint | 64 |
| String | 8 |
| everything else | 0 |
#include <xentara/workbench/data/PrimitiveType.hpp>