QElectroTech  0.8-dev
Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
autonum::AssignVariables Class Reference

The AssignVariables class This class assign variable of a formula string. Return the final string used to be displayed from a formula string. More...

#include <assignvariables.h>

Collaboration diagram for autonum::AssignVariables:
Collaboration graph

Static Public Member Functions

static QString formulaToLabel (QString formula, sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr)
 AssignVariables::formulaToLabel Return the formula with variable assigned (ready to be displayed) More...
 
static QString replaceVariable (const QString &formula, const DiagramContext &dc)
 AssignVariables::replaceVariable Replace the variables in formula in form %{my-var} to the corresponding value stored in dc. More...
 

Private Member Functions

 AssignVariables (const QString &formula, const sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr)
 
void assignTitleBlockVar ()
 
void assignProjectVar ()
 
void assignSequence ()
 

Private Attributes

Diagramm_diagram = nullptr
 
QString m_arg_formula
 
QString m_assigned_label
 
sequentialNumbers m_seq_struct
 
const Elementm_element = nullptr
 

Detailed Description

The AssignVariables class This class assign variable of a formula string. Return the final string used to be displayed from a formula string.

Constructor & Destructor Documentation

◆ AssignVariables()

autonum::AssignVariables::AssignVariables ( const QString &  formula,
const sequentialNumbers seqStruct,
Diagram diagram,
const Element elmt = nullptr 
)
private
Here is the call graph for this function:

Member Function Documentation

◆ assignProjectVar()

void autonum::AssignVariables::assignProjectVar ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ assignSequence()

void autonum::AssignVariables::assignSequence ( )
private
Here is the caller graph for this function:

◆ assignTitleBlockVar()

void autonum::AssignVariables::assignTitleBlockVar ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ formulaToLabel()

QString autonum::AssignVariables::formulaToLabel ( QString  formula,
sequentialNumbers seqStruct,
Diagram diagram,
const Element elmt = nullptr 
)
static

AssignVariables::formulaToLabel Return the formula with variable assigned (ready to be displayed)

Parameters
formula- the formula to work
seqStruct- struct where is stocked int values (struct is passed as a reference and modified by this static method)
diagram- the diagram where occure the formula.
elmt- parent element (if any) of the formula
Returns
the string with variable assigned.
Here is the caller graph for this function:

◆ replaceVariable()

QString autonum::AssignVariables::replaceVariable ( const QString &  formula,
const DiagramContext dc 
)
static

AssignVariables::replaceVariable Replace the variables in formula in form %{my-var} to the corresponding value stored in dc.

Parameters
formula
dc
Returns
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_arg_formula

QString autonum::AssignVariables::m_arg_formula
private

◆ m_assigned_label

QString autonum::AssignVariables::m_assigned_label
private

◆ m_diagram

Diagram* autonum::AssignVariables::m_diagram = nullptr
private

◆ m_element

const Element* autonum::AssignVariables::m_element = nullptr
private

◆ m_seq_struct

sequentialNumbers autonum::AssignVariables::m_seq_struct
private

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