HOPS
HOPS class reference
Public Member Functions | List of all members
hops::MHO_VexBlockParser Class Reference

Class MHO_VexBlockParser. More...

#include <MHO_VexBlockParser.hh>

Public Member Functions

 MHO_VexBlockParser ()
 
virtual ~MHO_VexBlockParser ()
 
mho_json ParseBlockLines (std::string block_name, const std::vector< MHO_VexLine > *block_lines)
 Parses block lines and returns a JSON object based on block type. More...
 
void SetFormatDirectory (std::string fdir)
 Setter for format directory. More...
 

Detailed Description

Class MHO_VexBlockParser.

Parses information in a named vex block (e.g. $FREQ, $SOURCE, etc)

Author
J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
Date
Thu May 26 16:55:16 2022 -0400

Constructor & Destructor Documentation

◆ MHO_VexBlockParser()

hops::MHO_VexBlockParser::MHO_VexBlockParser ( )

◆ ~MHO_VexBlockParser()

hops::MHO_VexBlockParser::~MHO_VexBlockParser ( )
virtual

Member Function Documentation

◆ ParseBlockLines()

mho_json hops::MHO_VexBlockParser::ParseBlockLines ( std::string  block_name,
const std::vector< MHO_VexLine > *  block_lines 
)

Parses block lines and returns a JSON object based on block type.

Parameters
block_nameName of the block to parse
block_linesPointer to vector of MHO_VexLine objects representing the block
Returns
mho_json object containing parsed block data or empty if parsing fails

◆ SetFormatDirectory()

void hops::MHO_VexBlockParser::SetFormatDirectory ( std::string  fdir)
inline

Setter for format directory.

Parameters
fdirNew format directory path

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