|
static constexpr auto | cid |
|
static constexpr auto | name |
|
◆ classIdentifier()
The Class Identifier has to be globally unique. Use a reverse DNS naming scheme. Example: "org.someorg.mydatatype" The default implementation will look for a static std::string / std::string_view member T::classIdentifier. In case it is not found an empty string will be returned. An empty class identifier will be considered an error in various factories.
◆ colorCode()
Should return a color that will be used to identify ports of this data type The default implementation will look for a static uvec3 member T::colorCode. In case it is not found black will be returned.
◆ dataName()
Should return a user friendly version of the above identifier, "MyDataType" for example. Does not have to be unique, and usually shorter then the class identifier. The default implementation will look for a static std::string / std::string_view member T::dataName. In case it is not found the classIdentifier will be returned.
◆ info()
Should return a document with information describing the data. The default implementation will look for a static function Document T::getInfo(const T& data). In case it is not found a Document only containing the dataName() will be returned.
- See also
- Document
◆ cid
Initial value:= []() {
if constexpr (!name.empty()) {
} else {
}
}()
static constexpr std::string_view classIdentifier()
Definition datatraits.h:83
A compile time string implementation. Supports compile time string concatenation and conversion to st...
Definition staticstring.h:73
◆ name
Initial value:= []() {
if constexpr (!tName.empty()) {
return "DataSequence<" +
StaticString<tName.size()>(tName) +
">";
} else {
}
}()
static constexpr std::string_view dataName()
Definition datatraits.h:91
The documentation for this struct was generated from the following file: