* \brief Return the static class name including the type-dependent prefix. * * This function returns different strings depending on the template parameter, * which is required for serialization to work correctly. * * \return The class name string (e.g., "DoubleVectorProperty"). */
| 83 | * \return The class name string (e.g., "DoubleVectorProperty"). |
| 84 | */ |
| 85 | static const char *GetStaticNameOfClass() |
| 86 | { |
| 87 | // concatenate a prefix dependent on the template type and our own classname |
| 88 | static std::string nameOfClass = std::string(VectorPropertyDataType<DATATYPE>::prefix()).append("VectorProperty"); |
| 89 | return nameOfClass.c_str(); |
| 90 | } |
| 91 | |
| 92 | const char *GetNameOfClass() const override { return this->GetStaticNameOfClass(); } |
| 93 | itkFactorylessNewMacro(Self); |
no outgoing calls