Sen API
Sen Libraries
Loading...
Searching...
No Matches
sen::lang::FomParser Class Reference

Parses HLA FOM files. More...

#include <fom_parser.h>

Public Member Functions

 FomParser (const std::vector< std::filesystem::path > &paths, const std::vector< std::filesystem::path > &mappings, const TypeSettings &settings)
 Stores the tokens for eventual parsing.
 ~FomParser ()
TypeSetContext computeTypeSets ()
 Computes all underlying type sets and puts them into a TypeSetContext.
TypeSetContext convertToCompleteTypeSetContext () &&
 Computes all underlying type sets and returns a complete TypeSetContext including the current root TypeSet.
const lang::TypeSetgetRootTypeSet () const &noexcept

Detailed Description

Parses HLA FOM files.

Constructor & Destructor Documentation

◆ FomParser()

sen::lang::FomParser::FomParser ( const std::vector< std::filesystem::path > & paths,
const std::vector< std::filesystem::path > & mappings,
const TypeSettings & settings )

Stores the tokens for eventual parsing.

◆ ~FomParser()

sen::lang::FomParser::~FomParser ( )

Member Function Documentation

◆ computeTypeSets()

TypeSetContext sen::lang::FomParser::computeTypeSets ( )

Computes all underlying type sets and puts them into a TypeSetContext.

Note: By default, the root type set is not included but still stored in the FomParser. For a complete TypeSetContext call convertToCompleteTypeSetContext.

◆ convertToCompleteTypeSetContext()

TypeSetContext sen::lang::FomParser::convertToCompleteTypeSetContext ( ) &&

Computes all underlying type sets and returns a complete TypeSetContext including the current root TypeSet.

◆ getRootTypeSet()

const lang::TypeSet & sen::lang::FomParser::getRootTypeSet ( ) const &
nodiscardnoexcept

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