24 case OpenModeKind::Write:
25 return (stream << std::string(
"Write"));
26 case OpenModeKind::Read:
27 return (stream << std::string(
"Read"));
28 case OpenModeKind::Append:
29 return (stream << std::string(
"Append"));
39 str +=
"std::vector<";
49 str +=
"std::int64_t";
61 str +=
"invalid-type";
95 return TypeID((
int)
id & ~((
int)TypeID::Array));
102 return TypeID((
int)
id | ((
int)TypeID::Array));
static bool isArray(TypeID id) noexcept
Check if type is an array of types.
static TypeID getArray(TypeID id) noexcept
Return the array type.
static int sizeOf(TypeID id)
Get size of the type.
Namespace of the serialbox library.
TypeID
Type-id of types recognized by serialbox.
static std::string toString(TypeID id)
Convert to string.
static bool isPrimitive(TypeID id) noexcept
Check if type is primitive.
static TypeID getPrimitive(TypeID id) noexcept
Return the underlying primitve type.
OpenModeKind
Policy for opening files in the Serializer and Archive.
#define serialbox_unreachable(msg)
Marks that the current location is not supposed to be reachable.
std::ostream & operator<<(std::ostream &stream, const FieldID &f)
Convert FieldID to stream.
Exception class which stores a human-readable error description.