Peano
Loading...
Searching...
No Matches
peano4.api.datamodel.DaStGen2.DaStGen2Artefact Class Reference

Output artefact which writes one DaStGen2 data model into the project. More...

Inheritance diagram for peano4.api.datamodel.DaStGen2.DaStGen2Artefact:
Collaboration diagram for peano4.api.datamodel.DaStGen2.DaStGen2Artefact:

Public Member Functions

 __init__ (self, data_model, file_name_without_extension)
 
 generate (self, overwrite, directory)
 

Protected Attributes

 _data_model
 
 _file_name_without_extension
 

Detailed Description

Output artefact which writes one DaStGen2 data model into the project.

The generators below do not write their data models straightaway, as they do not know the directory of the project when they construct the output. Instead, they register one artefact per data model with the output, which writes the header and the implementation once the output is generated into the project directory, as the output calls generate() on each of its artefacts.

Definition at line 19 of file DaStGen2.py.

Constructor & Destructor Documentation

◆ __init__()

peano4.api.datamodel.DaStGen2.DaStGen2Artefact.__init__ (   self,
  data_model,
  file_name_without_extension 
)
Parameters
data_modeldastgen2.DataModel Data model to write. Its full qualified name has to be set already.
file_name_without_extensionstr File name relative to the project directory.

Definition at line 32 of file DaStGen2.py.

Member Function Documentation

◆ generate()

Field Documentation

◆ _data_model

◆ _file_name_without_extension

peano4.api.datamodel.DaStGen2.DaStGen2Artefact._file_name_without_extension
protected

Definition at line 43 of file DaStGen2.py.

Referenced by peano4.api.datamodel.DaStGen2.DaStGen2Artefact.generate().


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