|  | 
| using | allocator_type = std::pmr::polymorphic_allocator<std::byte> | 
|  | 
|  | SerializeBase (const std::filesystem::path &fileName, allocator_type alloc={}) | 
|  | Base class for Serializer and Deserializer. 
 | 
|  | SerializeBase (const SerializeBase &rhs)=delete | 
|  | SerializeBase (SerializeBase &&rhs) noexcept | 
| SerializeBase & | operator= (const SerializeBase &)=delete | 
| SerializeBase & | operator= (SerializeBase &&) noexcept | 
| const std::filesystem::path & | getFileName () const | 
|  | Gets the workspace file name. 
 | 
| const std::filesystem::path & | getFileDir () const | 
|  | Gets the workspace file directory. 
 | 
| allocator_type | getAllocator () const | 
| TiXmlDocument & | doc () | 
|  | 
| template<typename U> | 
| static constexpr bool | isPrimitiveType () | 
|  | Checks whether the given type is a primitive type. 
 | 
|  | 
| std::filesystem::path | fileName_ | 
| std::filesystem::path | fileDir_ | 
| std::unique_ptr< TiXmlDocument > | doc_ | 
| TiXmlElement * | rootElement_ | 
| bool | retrieveChild_ | 
◆ SerializeBase()
  
  | 
        
          | inviwo::SerializeBase::SerializeBase | ( | const std::filesystem::path & | fileName, |  
          |  |  | allocator_type | alloc = {} ) |  | explicit | 
 
Base class for Serializer and Deserializer. 
This class consists of features that are common to both serializer and de-serializer.
- Parameters
- 
  
    | fileName | full path to xml file (for reading or writing). |  | alloc | Allocator to use for memory resources. |  
 
 
 
◆ isPrimitiveType()
template<typename U> 
  
  | 
        
          | constexpr bool inviwo::SerializeBase::isPrimitiveType | ( |  | ) |  |  | inlinestaticconstexpr | 
 
Checks whether the given type is a primitive type. 
return true if type is one of following type: bool, char, signed int, unsigned int, float, double, long double, std::string
- Template Parameters
- 
  
    | U | the type to test std::string |  
 
- Returns
- true or false 
 
 
The documentation for this class was generated from the following file: