HAL
hal::HGLParser Class Reference

#include <hgl_parser.h>

Inheritance diagram for hal::HGLParser:
Inheritance graph
Collaboration diagram for hal::HGLParser:
Collaboration graph

Public Member Functions

 HGLParser ()=default
 
 ~HGLParser ()=default
 
Result< std::unique_ptr< GateLibrary > > parse (const std::filesystem::path &file_path) override
 
- Public Member Functions inherited from hal::GateLibraryParser
 GateLibraryParser ()=default
 
virtual ~GateLibraryParser ()=default
 

Detailed Description

Definition at line 43 of file hgl_parser.h.

Constructor & Destructor Documentation

◆ HGLParser()

hal::HGLParser::HGLParser ( )
default

◆ ~HGLParser()

hal::HGLParser::~HGLParser ( )
default

Member Function Documentation

◆ parse()

Result< std::unique_ptr< GateLibrary > > hal::HGLParser::parse ( const std::filesystem::path &  file_path)
overridevirtual

Deserializes a gate library in HGL format from the string stream into a gate library object.

Parameters
[in]file_path- Path to the file containing the gate library definition.
Returns
The gate library or a nullptr on failure.

Implements hal::GateLibraryParser.

Definition at line 17 of file hgl_parser.cpp.

References ERR, ERR_APPEND, and OK.


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