carputils
Doxygen code documentation for the python framework controlling openCARP
Public Member Functions | List of all members
carputils.cml.cmlparser.CMLParser Class Reference

Class defining a basic parser interface. More...

Inheritance diagram for carputils.cml.cmlparser.CMLParser:
carputils.cml.cmlparser.CMLParserYAML

Public Member Functions

def __init__ (self)
 
def parsef (self, fp)
 Parse a file. More...
 
def parses (self, string)
 Parse a string. More...
 
def parsel (self, lines)
 Parse lines. More...
 

Detailed Description

Class defining a basic parser interface.

Constructor & Destructor Documentation

◆ __init__()

def carputils.cml.cmlparser.CMLParser.__init__ (   self)

Member Function Documentation

◆ parsef()

def carputils.cml.cmlparser.CMLParser.parsef (   self,
  fp 
)

Parse a file.

Note
This is just a method interface, a NotImplementedError will be raised when the method is called.
Parameters
fpFile pointer to the file to be parsed
Raise
NotImplementedError

◆ parsel()

def carputils.cml.cmlparser.CMLParser.parsel (   self,
  lines 
)

Parse lines.

Note
This is just a method interface, a NotImplementedError will be raised when the method is called.
Parameters
lineslines to be parsed
Raise
NotImplementedError

◆ parses()

def carputils.cml.cmlparser.CMLParser.parses (   self,
  string 
)

Parse a string.

Note
This is just a method interface, a NotImplementedError will be raised when the method is called.
Parameters
srtringstring to be parsed
Raise
NotImplementedError

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