SUAVE  2.5.2
An Aerospace Vehicle Environment for Designing Future Aircraft
SUAVE.Input_Output.XML.Data.Data Class Reference
Inheritance diagram for SUAVE.Input_Output.XML.Data.Data:

Public Member Functions

def __defaults__ (self)
 
def get_elements (self, tag)
 
def new_element (self, tag)
 
def __str__ (self, indent='')
 

Static Public Member Functions

def from_dict (data)
 

Public Attributes

 tag
 
 attributes
 
 content
 
 elements
 

Detailed Description

This the XML data class used in SUAVE.

Assumptions:
None

Source:
N/A

Member Function Documentation

◆ __defaults__()

def SUAVE.Input_Output.XML.Data.Data.__defaults__ (   self)
Defaults for the data class.
    
Assumptions:
None
    
Source:
N/A
    
Inputs:
None
    
Outputs:
None
    
Properties Used:
N/A

◆ __str__()

def SUAVE.Input_Output.XML.Data.Data.__str__ (   self,
  indent = '' 
)
Determines how the class is shown in a string.
    
Assumptions:
None
    
Source:
N/A
    
Inputs:
indent  <string> indent to be used
    
Outputs:
args    <string>
    
Properties Used:
N/A

◆ from_dict()

def SUAVE.Input_Output.XML.Data.Data.from_dict (   data)
static
Gives a list of elements from data.
    
Assumptions:
None
    
Source:
N/A
    
Inputs:
data    - data class to read
    
Outputs:
results - list of elements
    
Properties Used:
N/A

◆ get_elements()

def SUAVE.Input_Output.XML.Data.Data.get_elements (   self,
  tag 
)
Gets elements with a given tag.
    
Assumptions:
None
    
Source:
N/A
    
Inputs:
tag     - used to check which elements to return
    
Outputs:
output  - list of matching elements
    
Properties Used:
N/A

◆ new_element()

def SUAVE.Input_Output.XML.Data.Data.new_element (   self,
  tag 
)
Creates a new element.
    
Assumptions:
None
    
Source:
N/A
    
Inputs:
tag   - tag of the new element
    
Outputs:
elem  - the new element
    
Properties Used:
N/A

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