#include <memory>
#include <unordered_map>
#include <iostream>
#include <boost/exception/error_info.hpp>
#include <QDebug>
#include "Tympan/core/defines.h"
#include "Tympan/core/macros.h"
#include "Tympan/core/idgen.h"
#include "Tympan/models/business/TYNameManager.h"
#include "TYDefines.h"
#include "TYXMLTools.h"
Go to the source code of this file.
◆ debugXml
#define debugXml |
( |
|
expr | ) |
_debugXml(#expr, (expr)) |
◆ OPROTODECL
#define OPROTODECL |
( |
|
classname | ) |
|
Value:public: \
return new classname(); \
} \
virtual const char* getClassName() const { return #classname; } \
static classname* safeDownCast(
OPrototype * pObject) { \
if (pObject) { \
classname * pTypedObject = dynamic_cast<classname *>(pObject); \
if (pTypedObject != nullptr) { \
return pTypedObject; \
} \
} \
return nullptr;\
} \
Macro pour la declaration des methodes a surcharger de la classe OPrototype, et pour la registration du type 'classname' dans la Prototype Factory. Cette macro doit etre appelee dans la declaration de la nouvelle classe derivee (.h).
Definition at line 67 of file TYElement.h.
◆ TY_EXT_GRAPHIC_DECL
#define TY_EXT_GRAPHIC_DECL |
( |
|
classname | ) |
|
Macro pour la declaration des methodes d'extension pour le graphique
Definition at line 414 of file TYElement.h.
◆ TY_EXT_GRAPHIC_DECL_ONLY
#define TY_EXT_GRAPHIC_DECL_ONLY |
( |
|
classname | ) |
|
◆ TY_EXT_GRAPHIC_INST
#define TY_EXT_GRAPHIC_INST |
( |
|
classname | ) |
|
◆ TY_EXTENSION_DECL
#define TY_EXTENSION_DECL |
( |
|
classname | ) |
|
Macro pour la declaration des methodes d'extension pour l'IHM et l'Impression.
Definition at line 374 of file TYElement.h.
◆ TY_EXTENSION_DECL_ONLY
#define TY_EXTENSION_DECL_ONLY |
( |
|
classname | ) |
|
◆ TY_EXTENSION_INST
#define TY_EXTENSION_INST |
( |
|
classname | ) |
|
◆ TYDIRPREFERENCEMANAGER
#define TYDIRPREFERENCEMANAGER "UserPreferences" |
◆ LPTYElementArray
◆ LPTYElementGraphic
◆ TYElementContainer
◆ TYUUID
◆ _debugXml()
QDebug _debugXml |
( |
const char * |
expr, |
|
|
const QDomNode & |
node |
|
) |
| |
|
inline |
◆ build_factory()
Template class method allowing to build a factory for a T class
- Returns
- a unique ptr on the build factory
CAUTION: T must inherit from OPrototype
Definition at line 336 of file TYElement.h.
◆ downcast()
◆ str_qt2c()
const char* str_qt2c |
( |
const QString & |
qstr | ) |
|
|
inline |
◆ xml2cstring()
const char* xml2cstring |
( |
const QDomNode & |
node | ) |
|
|
inline |
◆ xml2qstring()
QString xml2qstring |
( |
const QDomNode & |
node | ) |
|
|
inline |