itom  4.1.0
ito::PyWorkspaceItem Class Reference

every item in the workspace is represented by one PyWorkspaceItem More...

#include <pythonWorkspace.h>

Public Types

enum  ChildState { stateNoChilds = 0x00, stateChilds = 0x01 }
 

Public Member Functions

 PyWorkspaceItem (const PyWorkspaceItem &other)
 

Public Attributes

QString m_name
 
QString m_key
 
QString m_type
 
QString m_value
 
QString m_extendedValue
 
int m_compatibleParamBaseType
 
bool m_exist
 
bool m_isarrayelement
 
ChildState m_childState
 
QHash< QString, PyWorkspaceItem * > m_childs
 

Detailed Description

every item in the workspace is represented by one PyWorkspaceItem

Member Enumeration Documentation

Enumerator
stateNoChilds 

this variable has no children (no list items, no attributes, no dict items). Therefore no expand indicators are displayed in the tree view.

stateChilds 

this variable can have children. An expand indicator is shown in the tree view.

Member Data Documentation

ChildState ito::PyWorkspaceItem::m_childState

indicates if this type of variable can have any childs and the expand indicator should be displayed in the tree view.

int ito::PyWorkspaceItem::m_compatibleParamBaseType

sets the corresponding type of ito::ParamBase::Type that fits to the variable or 0 if no ito::ParamBase::Type fits.

bool ito::PyWorkspaceItem::m_isarrayelement

true if this variable is part of a list, tuple, dict, mapping, ... If the python type does not allow any child, m_isarrayelement is set to false.

QString ito::PyWorkspaceItem::m_key

type of this item. The string has the following form XY:name, where X is PY_LIST_TUPLE, PY_MAPPING, PY_ATTR or PY_DICT (depends where this variable is member from), Y is PY_NUMBER or PY_STRING (depends on the type of m_name, e.g. variable string name or index of list or tuple) and name is m_name.

QString ito::PyWorkspaceItem::m_name

name of the item as it is visible in the first column of the workspace (either name of variable or index of list, tuple...)

QString ito::PyWorkspaceItem::m_type

Python internal type name of the variable (ob_type->tp_name of PyObject)


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