Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::SerializeBase Class Reference
+ Inheritance diagram for inviwo::SerializeBase:

Public Types

using allocator_type = std::pmr::polymorphic_allocator<std::byte>
 

Public Member Functions

TiXmlDocument & doc ()
 
allocator_type getAllocator () const
 
const std::filesystem::path & getFileDir () const
 Gets the workspace file directory.
 
const std::filesystem::path & getFileName () const
 Gets the workspace file name.
 
SerializeBase & operator= (const SerializeBase &)=delete
 
SerializeBase & operator= (SerializeBase &&) noexcept
 
 SerializeBase (const SerializeBase &rhs)=delete
 
 SerializeBase (const std::filesystem::path &fileName, allocator_type alloc={})
 Base class for Serializer and Deserializer.
 
 SerializeBase (SerializeBase &&rhs) noexcept
 

Protected Attributes

std::unique_ptr< TiXmlDocument > doc_
 
std::filesystem::path fileDir_
 
std::filesystem::path fileName_
 
bool retrieveChild_
 
TiXmlElement * rootElement_
 

Friends

class NodeSwitch
 

Constructor & Destructor Documentation

◆ 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
fileNamefull path to xml file (for reading or writing).
allocAllocator to use for memory resources.

The documentation for this class was generated from the following file: