This class manages settings concerning PYTHON, configured through the 'Generation settings' dialog. This class may be defined as a 'singleton', but I prefer to use static members allowing to just write 'PythonSettings::member' rather than 'PythonSettings::instance()->member' or other long sentence like this.
return if classes follow Python 2.2 by default
Declaration :
- Uml : static, + isPython_2_2() : bool
- C++ : public: static bool isPython_2_2()
- Java : public static boolean isPython_2_2()
Operation set_IsPython_2_2 |
set if classes follow Python 2.2 by default On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_IsPython_2_2(in y : bool) : bool
- C++ : public: static bool set_IsPython_2_2(bool y)
- Java : public static void set_IsPython_2_2(boolean y)
return the default indent step
Declaration :
- Uml : static, + indentStep() : string
- C++ : public: static const QCString & indentStep()
- Java : public static String indentStep()
set default indent step On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_IndentStep(in v : str) : bool
- C++ : public: static bool set_IndentStep(char * v)
- Java : public static void set_IndentStep(String v)
returns TRUE when the created Python objects are initialized with the default declaration/definition
Declaration :
- Uml : static, + useDefaults() : bool
- C++ : public: static bool useDefaults()
- Java : public static boolean useDefaults()
Operation set_UseDefaults |
if y is TRUE the future created Python objects will be initialized with the default declaration/definition On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_UseDefaults(in y : bool) : bool, exceptions : RuntimeException
- C++ : public: static bool set_UseDefaults(bool y)
- Java : public static void set_UseDefaults(boolean y) throws RuntimeException
Operation relationAttributeStereotype |
returns the PYTHON stereotype corresponding to the 'UML' stereotype given in argument
Declaration :
- Uml : static, + relationAttributeStereotype(in s : string) : string
- C++ : public: static QCString relationAttributeStereotype(const QCString & s)
- Java : public static String relationAttributeStereotype(String s)
Operation set_RelationAttributeStereotype |
set the PYTHON stereotype corresponding to the 'UML' stereotype given in argument On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_RelationAttributeStereotype(in s : string, in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_RelationAttributeStereotype(QCString s, QCString v)
- Java : public static void set_RelationAttributeStereotype(String s, String v) throws RuntimeException
Operation relationAttributeUmlStereotype |
reverse of the RelationAttributeStereotype() operation, returns the 'UML' stereotype corresponding to the PYTHON one given in argument
Declaration :
- Uml : static, + relationAttributeUmlStereotype(in s : string) : string
- C++ : public: static QCString relationAttributeUmlStereotype(const QCString & s)
- Java : public static String relationAttributeUmlStereotype(String s)
Operation classStereotype |
returns the PYTHON stereotype corresponding to the 'UML' stereotype given in argument
Declaration :
- Uml : static, + classStereotype(in s : string) : string
- C++ : public: static QCString classStereotype(const QCString & s)
- Java : public static String classStereotype(String s)
Operation set_ClassStereotype |
set the PYTHON stereotype corresponding to the 'UML' stereotype given in argument On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_ClassStereotype(in s : string, in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_ClassStereotype(QCString s, QCString v)
- Java : public static void set_ClassStereotype(String s, String v) throws RuntimeException
Operation classUmlStereotype |
reverse of the ClassStereotype() operation, returns the 'UML' stereotype corresponding to the PYTHON one given in argument
Declaration :
- Uml : static, + classUmlStereotype(in s : string) : string
- C++ : public: static QCString classUmlStereotype(const QCString & s)
- Java : public static String classUmlStereotype(String s)
returns the import or other form specified in the last 'Generation settings' tab for the Python type given in argument.
Declaration :
- Uml : static, + get_import(in s : string) : string
- C++ : public: static QCString get_import(const QCString & s)
- Java : public static String get_import(String s)
set the import or other form specified in the last 'Generation settings' tab for the Python type given in argument. On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_Import(in s : string, in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_Import(QCString s, QCString v)
- Java : public static void set_Import(String s, String v) throws RuntimeException
return the 'root' directory
Declaration :
- Uml : static, + rootDir() : string
- C++ : public: static const QCString & rootDir()
- Java : public static String rootDir()
set the 'root' directory On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_RootDir(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_RootDir(QCString v)
- Java : public static void set_RootDir(String v) throws RuntimeException
returns the default source file content
Declaration :
- Uml : static, + sourceContent() : string
- C++ : public: static const QCString & sourceContent()
- Java : public static String sourceContent()
Operation set_SourceContent |
set the default source file content On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_SourceContent(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_SourceContent(QCString v)
- Java : public static void set_SourceContent(String v) throws RuntimeException
Operation sourceExtension |
returns the extension of the file produced by the PYTHON code generator
Declaration :
- Uml : static, + sourceExtension() : string
- C++ : public: static const QCString & sourceExtension()
- Java : public static String sourceExtension()
Operation set_SourceExtension |
set the extension of the file produced by the PYTHON code generator On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_SourceExtension(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_SourceExtension(QCString v)
- Java : public static void set_SourceExtension(String v) throws RuntimeException
returns the default definition of a class
Declaration :
- Uml : static, + classDecl() : string
- C++ : public: static const QCString & classDecl()
- Java : public static String classDecl()
set the default definition of a class On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_ClassDecl(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_ClassDecl(QCString v)
- Java : public static void set_ClassDecl(String v) throws RuntimeException
Operation externalClassDecl |
returns the default specification for an 'external' class
Declaration :
- Uml : static, + externalClassDecl() : string
- C++ : public: static const QCString & externalClassDecl()
- Java : public static String externalClassDecl()
Operation set_ExternalClassDecl |
set the default specification for an 'external' class On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_ExternalClassDecl(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_ExternalClassDecl(QCString v)
- Java : public static void set_ExternalClassDecl(String v) throws RuntimeException
returns the default definition of an enumeration
Declaration :
- Uml : static, + enumDecl() : string
- C++ : public: static QCString enumDecl()
- Java : public static String enumDecl()
set the default definition of an enumeration On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_EnumDecl(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_EnumDecl(QCString v)
- Java : public static void set_EnumDecl(String v) throws RuntimeException
returns the default definition of an attribute depending on the multiplicity
Declaration :
- Uml : static, + attributeDecl(in multiplicity : str) : string
- C++ : public: static const QCString & attributeDecl(const char * multiplicity)
- Java : public static String attributeDecl(String multiplicity)
Operation set_AttributeDecl |
set the default definition of an attribute On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_AttributeDecl(in multiplicity : str, in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_AttributeDecl(const char * multiplicity, QCString v)
- Java : public static void set_AttributeDecl(String multiplicity, String v) throws RuntimeException
returns the default definition of an enumeration item
Declaration :
- Uml : static, + enumItemDecl() : string
- C++ : public: static QCString enumItemDecl()
- Java : public static String enumItemDecl()
Operation set_EnumItemDecl |
set the default definition of an enumeration item On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_EnumItemDecl(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_EnumItemDecl(QCString v)
- Java : public static void set_EnumItemDecl(String v) throws RuntimeException
returns the default definition of a relation depending on it is an aggregation by value or not and the multiplicity, given in argument.
Declaration :
- Uml : static, + relationDecl(in by_value : bool, in multiplicity : str) : string
- C++ : public: static const QCString & relationDecl(bool by_value, const char * multiplicity)
- Java : public static String relationDecl(boolean by_value, String multiplicity)
Operation set_RelationDecl |
set the default definition of a relation depending on it is an aggregation by value or not and the multiplicity, given in argument. On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_RelationDecl(in by_value : bool, in multiplicity : str, in v : str) : bool, exceptions : RuntimeException
- C++ : public: static bool set_RelationDecl(bool by_value, const char * multiplicity, const char * v)
- Java : public static void set_RelationDecl(boolean by_value, String multiplicity, String v) throws RuntimeException
returns the default definition of an operation
Declaration :
- Uml : static, + operationDef() : string
- C++ : public: static const QCString & operationDef()
- Java : public static String operationDef()
Operation set_OperationDef |
set the default definition of an operation On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_OperationDef(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_OperationDef(QCString v)
- Java : public static void set_OperationDef(String v) throws RuntimeException
Operation initOperationDef |
returns the default definition of __init__
Declaration :
- Uml : static, + initOperationDef() : string
- C++ : public: static const QCString & initOperationDef()
- Java : public static String initOperationDef()
Operation set_InitOperationDef |
set the default definition of __init__ On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_InitOperationDef(in v : string) : bool
- C++ : public: static bool set_InitOperationDef(QCString v)
- Java : public static void set_InitOperationDef(String v)
returns the default name of a 'get' operation generated through the attribute and relation 'add get operation' menu
Declaration :
- Uml : static, + getName() : string
- C++ : public: static const QCString & getName()
- Java : public static String getName()
set the default name of a 'get' operation generated through the attribute and relation 'add get operation' menu On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_GetName(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_GetName(QCString v)
- Java : public static void set_GetName(String v) throws RuntimeException
returns the default name of a 'set' operation generated through the attribute and relation 'add set operation' menu
Declaration :
- Uml : static, + setName() : string
- C++ : public: static const QCString & setName()
- Java : public static String setName()
set the default name of a 'set' operation generated through the attribute and relation 'add set operation' menu On error : return FALSE in C++, produce a RuntimeException in Java
Declaration :
- Uml : static, + set_SetName(in v : string) : bool, exceptions : RuntimeException
- C++ : public: static bool set_SetName(QCString v)
- Java : public static void set_SetName(String v) throws RuntimeException
never called !
Declaration :
- Uml : - PythonSettings() :
- C++ : private: PythonSettings()
- Java : private PythonSettings()
Declaration :
- Uml : static, - mult_column(in mult : string) : unsigned
- C++ : private: static unsigned mult_column(const QCString & mult)
- Java : private static int mult_column(String mult)
Declaration :
- Uml : static, - _defined : bool
- C++ : private: static bool _defined
- Java : private static boolean _defined
Declaration :
- Uml : static, - _2_2 : bool
- C++ : private: static bool _2_2
- Java : private static boolean _2_2
Declaration :
- Uml : static, - _indent_step : string
- C++ : private: static QCString _indent_step
- Java : private static String _indent_step
Declaration :
- Uml : static, - _root : string
- C++ : private: static QCString _root
- Java : private static String _root
Declaration :
- Uml : static, - _class_decl : string
- C++ : private: static QCString _class_decl
- Java : private static String _class_decl
Attribute _external_class_decl |
Declaration :
- Uml : static, - _external_class_decl : string
- C++ : private: static QCString _external_class_decl
- Java : private static String _external_class_decl
Declaration :
- Uml : static, - _enum_decl : string
- C++ : private: static QCString _enum_decl
- Java : private static String _enum_decl
Declaration :
- Uml : static, - _attr_decl : string
- C++ : private: static QCString _attr_decl[2/*multiplicity*/]
- Java : private static String _attr_decl[/*multiplicity*/]
Attribute _enum_item_decl |
Declaration :
- Uml : static, - _enum_item_decl : string
- C++ : private: static QCString _enum_item_decl
- Java : private static String _enum_item_decl
Declaration :
- Uml : static, - _rel_decl : string
- C++ : private: static QCString _rel_decl[2/*relation kind*/][2/*multiplicity*/]
- Java : private static String[][] _rel_decl
Declaration :
- Uml : static, - _oper_def : string
- C++ : private: static QCString _oper_def
- Java : private static String _oper_def
Declaration :
- Uml : static, # _initoper_def : string
- C++ : protected: static QCString _initoper_def
- Java : protected static String _initoper_def
Declaration :
- Uml : static, - _get_name : string
- C++ : private: static QCString _get_name
- Java : private static String _get_name
Declaration :
- Uml : static, - _set_name : string
- C++ : private: static QCString _set_name
- Java : private static String _set_name
Declaration :
- Uml : static, - _src_content : string
- C++ : private: static QCString _src_content
- Java : private static String _src_content
Declaration :
- Uml : static, - _ext : string
- C++ : private: static QCString _ext
- Java : private static String _ext
Declaration :
- Uml : static, - _map_imports : string
- C++ : private: static QDict<QCString> _map_imports
- Java : private static Hashtable _map_imports
Declaration :
- Uml : static, # read_() : void
- C++ : protected: static void read_()
- Java : protected static void read_()
Operation read_if_needed_ |
Declaration :
- Uml : static, # read_if_needed_() : void
- C++ : protected: static void read_if_needed_()
- Java : protected static void read_if_needed_()