[
next
] [
tail
] [
up
]
4.1
sdds::typeOf and sdds::typeName
name:
sdds::typeOf
,
sdds::typeName
description:
Inspect the active alternative of an SDDS scalar or homogeneous values variant, or obtain the lowercase protocol name for an SDDS type.
synopsis:
#include "SDDS.hpp"
sdds::Type sdds::typeOf(const sdds::Scalar &value) noexcept;
sdds::Type sdds::typeOf(const sdds::Values &values) noexcept;
std::string_view sdds::typeName(sdds::Type type) noexcept;
arguments:
value
— A scalar variant.
values
— A homogeneous vector variant.
type
— An SDDS type identifier.
return value:
typeOf
returns the corresponding
sdds::Type
.
typeName
returns the stable SDDS type name, or an empty view for an invalid value.
see also:
Section
4.2
.
[
next
] [
front
] [
up
]