src_files.template_class.template Class Reference

Public Member Functions

def __init__ (self, path)
 
def read_data (self)
 
def entries (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def save_template (self, path, winnet_path=None)
 
def __init__ (self, path)
 
def read_data (self)
 
def entries (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 

Public Attributes

 path
 
 data
 

Private Attributes

 __entries
 

Detailed Description

  Class to read a WinNet template file.

Definition at line 6 of file template_class.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def src_files.template_class.template.__init__ (   self,
  path 
)
  Initialize the template class.

Definition at line 11 of file template_class.py.

◆ __init__() [2/2]

def src_files.template_class.template.__init__ (   self,
  path 
)
  Initialize the template class.

Definition at line 11 of file template_class.py.

Here is the call graph for this function:

Member Function Documentation

◆ __getitem__() [1/2]

def src_files.template_class.template.__getitem__ (   self,
  key 
)
  Get the value of a specific key.

Definition at line 51 of file template_class.py.

Here is the call graph for this function:

◆ __getitem__() [2/2]

def src_files.template_class.template.__getitem__ (   self,
  key 
)
  Get the value of a specific key.

Definition at line 51 of file template_class.py.

Here is the call graph for this function:

◆ __setitem__() [1/2]

def src_files.template_class.template.__setitem__ (   self,
  key,
  value 
)
Set the value of a specific key.

Definition at line 59 of file template_class.py.

Here is the call graph for this function:

◆ __setitem__() [2/2]

def src_files.template_class.template.__setitem__ (   self,
  key,
  value 
)
Set the value of a specific key.

Definition at line 59 of file template_class.py.

Here is the call graph for this function:

◆ entries() [1/2]

def src_files.template_class.template.entries (   self)
  Get the entries of the template file.

Definition at line 40 of file template_class.py.

Here is the call graph for this function:

◆ entries() [2/2]

def src_files.template_class.template.entries (   self)
  Get the entries of the template file.

Definition at line 40 of file template_class.py.

Here is the call graph for this function:

◆ read_data() [1/2]

def src_files.template_class.template.read_data (   self)
  Read the data from the template file and store it in a dictionary.

Definition at line 18 of file template_class.py.

◆ read_data() [2/2]

def src_files.template_class.template.read_data (   self)
  Read the data from the template file and store it in a dictionary.

Definition at line 18 of file template_class.py.

Here is the call graph for this function:

◆ save_template()

def src_files.template_class.template.save_template (   self,
  path,
  winnet_path = None 
)
  Save the template file.

Definition at line 68 of file template_class.py.

Here is the call graph for this function:

Member Data Documentation

◆ __entries

src_files.template_class.template.__entries
private

Definition at line 23 of file template_class.py.

◆ data

src_files.template_class.template.data

Definition at line 27 of file template_class.py.

◆ path

src_files.template_class.template.path

Definition at line 15 of file template_class.py.