forked from pure-data/pure-data
/
ceammc_datatypes.h
36 lines (28 loc) · 1.18 KB
/
ceammc_datatypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*****************************************************************************
* Copyright 2017 Serge Poltavsky. All rights reserved.
*
* This file may be distributed under the terms of GNU Public License version
* 3 (GPL v3) as defined by the Free Software Foundation (FSF). A copy of the
* license should have been included with this file, or the project in which
* this file belongs to. You may also find the details of GPL v3 at:
* http://www.gnu.org/licenses/gpl-3.0.txt
*
* If you have any questions regarding the use of this file, feel free to
* contact the author of this file, or the owner of the project in which
* this file belongs to.
*****************************************************************************/
#ifndef CEAMMC_DATATYPES_H
#define CEAMMC_DATATYPES_H
#include <cstdint>
#include "ceammc_string_types.h"
namespace ceammc {
constexpr size_t DATA_TYPE_NAME_MAX_LENGTH = 14;
namespace data {
constexpr uint16_t DATA_INVALID = uint16_t(-1);
constexpr uint16_t DATA_PROPERTY = 31;
constexpr uint16_t DATA_WRAPPER = 32;
}
using DataTypeName = ceammc::BoostStaticString<DATA_TYPE_NAME_MAX_LENGTH>;
using DataTypeId = uint16_t;
}
#endif // CEAMMC_DATATYPES_H