ChimeraTK-DeviceAccess  03.18.00
ChimeraTK::DMapFileParser Class Reference

Provides method to parse DMAP file. More...

#include <DMapFileParser.h>

Static Public Member Functions

static DeviceInfoMapPointer parse (const std::string &file_name)
 Performs parsing of specified DMAP file. More...
 

Static Protected Member Functions

static void parseForLoadLib (const std::string &file_name, const std::string &line, uint32_t line_nr, const DeviceInfoMapPointer &dmap)
 
static void parseRegularLine (const std::string &file_name, const std::string &line, uint32_t line_nr, const DeviceInfoMapPointer &dmap)
 
static void raiseException (const std::string &file_name, const std::string &line, uint32_t line_nr)
 
static std::string absPathOfDMapContent (const std::string &dmapContent, const std::string &dmapFileName)
 

Detailed Description

Provides method to parse DMAP file.

Class does not perform parsing of associated MAP files.

Definition at line 19 of file DMapFileParser.h.

Member Function Documentation

◆ absPathOfDMapContent()

std::string ChimeraTK::DMapFileParser::absPathOfDMapContent ( const std::string &  dmapContent,
const std::string &  dmapFileName 
)
staticprotected

Definition at line 103 of file DMapFileParser.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse()

DeviceInfoMapPointer ChimeraTK::DMapFileParser::parse ( const std::string &  file_name)
static

Performs parsing of specified DMAP file.

Returns pointer to dRegisterInfo object describing all devices in file.

Exceptions
exDmapFileParser[exLibMap::EX_DMAP_FILE_PARSE_ERROR] if parsing error detected, exMapFileParser [exLibMap::EX_CANNOT_OPEN_DMAP_FILE] if specified DMAP file cannot be opened or exMapFileParser [exLibMap::EX_NO_DATA_IN_DMAP_FILES] if specified DMAP file is empty
Parameters
file_namename of DMAP file
Returns
pointer to dmapFile object

Definition at line 18 of file DMapFileParser.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseForLoadLib()

void ChimeraTK::DMapFileParser::parseForLoadLib ( const std::string &  file_name,
const std::string &  line,
uint32_t  line_nr,
const DeviceInfoMapPointer dmap 
)
staticprotected

Definition at line 54 of file DMapFileParser.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseRegularLine()

void ChimeraTK::DMapFileParser::parseRegularLine ( const std::string &  file_name,
const std::string &  line,
uint32_t  line_nr,
const DeviceInfoMapPointer dmap 
)
staticprotected

Definition at line 69 of file DMapFileParser.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ raiseException()

void ChimeraTK::DMapFileParser::raiseException ( const std::string &  file_name,
const std::string &  line,
uint32_t  line_nr 
)
staticprotected

Definition at line 113 of file DMapFileParser.cpp.

+ Here is the caller graph for this function:

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