Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::readers::IReaderRegistry Class Referenceabstract

Abstract interface defining lookup capabilities for file reader discovery and instantiation. More...

#include <IReaderRegistry.hpp>

Inheritance diagram for correlation::readers::IReaderRegistry:

Public Member Functions

 IReaderRegistry ()=default
virtual ~IReaderRegistry ()=default
 IReaderRegistry (const IReaderRegistry &)=delete
IReaderRegistry & operator= (const IReaderRegistry &)=delete
 IReaderRegistry (IReaderRegistry &&)=delete
IReaderRegistry & operator= (IReaderRegistry &&)=delete
virtual BaseReader * getReaderForExtension (const ReaderExtensionQuery &query) const =0
 Finds a reader matching the given file extension and optional filename sniffing query.
virtual BaseReader * getReaderForExtension (std::string_view extension) const =0
 Finds a reader matching the given file extension.
virtual std::vector< std::string > getAllExtensions () const =0
 Returns a list of all file extensions supported by the registry.
virtual const std::vector< std::unique_ptr< BaseReader > > & getReaders () const =0
 Returns all registered reader instances.

Detailed Description

Abstract interface defining lookup capabilities for file reader discovery and instantiation.

Constructor & Destructor Documentation

◆ IReaderRegistry() [1/3]

correlation::readers::IReaderRegistry::IReaderRegistry ( )
default
Here is the caller graph for this function:

◆ ~IReaderRegistry()

virtual correlation::readers::IReaderRegistry::~IReaderRegistry ( )
virtualdefault

◆ IReaderRegistry() [2/3]

correlation::readers::IReaderRegistry::IReaderRegistry ( const IReaderRegistry & )
delete
Here is the call graph for this function:

◆ IReaderRegistry() [3/3]

correlation::readers::IReaderRegistry::IReaderRegistry ( IReaderRegistry && )
delete
Here is the call graph for this function:

Member Function Documentation

◆ getAllExtensions()

virtual std::vector< std::string > correlation::readers::IReaderRegistry::getAllExtensions ( ) const
nodiscardpure virtual

Returns a list of all file extensions supported by the registry.

Returns
Vector of file extension strings.

Implemented in correlation::readers::ReaderFactory.

◆ getReaderForExtension() [1/2]

virtual BaseReader * correlation::readers::IReaderRegistry::getReaderForExtension ( const ReaderExtensionQuery & query) const
nodiscardpure virtual

Finds a reader matching the given file extension and optional filename sniffing query.

Parameters
[in]queryStructure containing extension and optional file path.
Returns
Pointer to a registered BaseReader, or nullptr if unsupported.

Implemented in correlation::readers::ReaderFactory.

◆ getReaderForExtension() [2/2]

virtual BaseReader * correlation::readers::IReaderRegistry::getReaderForExtension ( std::string_view extension) const
nodiscardpure virtual

Finds a reader matching the given file extension.

Parameters
[in]extensionFile extension (e.g., ".xyz", ".poscar").
Returns
Pointer to a registered BaseReader, or nullptr if unsupported.

Implemented in correlation::readers::ReaderFactory.

◆ getReaders()

virtual const std::vector< std::unique_ptr< BaseReader > > & correlation::readers::IReaderRegistry::getReaders ( ) const
nodiscardpure virtual

Returns all registered reader instances.

Returns
Constant reference to vector of unique pointers to BaseReader.

Implemented in correlation::readers::ReaderFactory.

◆ operator=() [1/2]

IReaderRegistry & correlation::readers::IReaderRegistry::operator= ( const IReaderRegistry & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

IReaderRegistry & correlation::readers::IReaderRegistry::operator= ( IReaderRegistry && )
delete
Here is the call graph for this function:

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