sisi4s
Loading...
Searching...
No Matches
pars::XyzParser Struct Reference

#include <XyzParser.hpp>

Collaboration diagram for pars::XyzParser:

Public Member Functions

Atom parseLine (const std::string &line)
 
std::vector< AtomparseFile (const std::string &fileName)
 

Public Attributes

const Regex sep = blank + oneOrMore
 
const Regex atom = upper + lower + optional
 
const Regex xyz_line
 

Member Function Documentation

◆ parseFile()

std::vector< Atom > pars::XyzParser::parseFile ( const std::string &  fileName)
inline
Here is the call graph for this function:

◆ parseLine()

Atom pars::XyzParser::parseLine ( const std::string &  line)
inline
Here is the caller graph for this function:

Member Data Documentation

◆ atom

const Regex pars::XyzParser::atom = upper + lower + optional

◆ sep

const Regex pars::XyzParser::sep = blank + oneOrMore

◆ xyz_line

const Regex pars::XyzParser::xyz_line
Initial value:
= bof + blank + anyOf
+ capture(atom.s) + sep.s
const Str bof("^")
const Str blank("[[:blank:]]")
const Str eof("$")
const Str anyOf("*")
const std::function< Str(Str)> capture([](const Str &i) { return "("+i+")";})
const Str realNumber("[-eE+\\d.]+")
const std::string s
Definition Parsing.hpp:46
const Regex atom
Definition XyzParser.hpp:25
const Regex sep
Definition XyzParser.hpp:23

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