BONImpl.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  BON

Defines

#define COMTHROW(x)   BONCOMTHROW(x)
#define THROW_METAPROJECT_BELONG(META)
#define THROW_PROJECT_BELONG(OBJECT)
#define THROW_METAPROJECT_DOES_NOT_HAVE(META, CLASS, NAME)
#define THROW_CANNOT_BE_NULL(META, CLASS)
#define THROW_CANNOT_BE_EMPTY(WHAT, THESTR)
#define PREF_Color   "/color"
#define PREF_NameColor   "/nameColor"
#define PREF_NameEnabled   "/isNameEnabled"
#define PREF_HelpURL   "/help"
#define PREF_Location1   "PartRegs/"
#define PREF_Location2   "/Position"
#define PREF_NamePosition   "/namePosition"
#define PREF_NameWrap   "/nameWrap"
#define PREF_HotSpotEnabled   "/isHotspotEnabled"
#define PREF_TypeNameEnabled   "/isTypeShown"
#define PREF_TypeInfoEnabled   "/isTypeInfoShown"
#define PREF_ModelAutoRoutingEnabled   "/isModelAutoRouted"
#define PREF_Decorator   "/decorator"
#define PREF_Icon   "/icon"
#define PREF_PortIcon   "/porticon"
#define PREF_SubTypeIcon   "/subTypeIcon"
#define PREF_InstanceIcon   "/instanceIcon"
#define PREF_BorderColor   "/borderColor"
#define PREF_BackgroundColor   "/backgroundColor"
#define PREF_PortNameColor   "/portColor"
#define PREF_LineType   "/lineType"
#define PREF_SrcLineEndType   "/srcStyle"
#define PREF_DstLineEndType   "/dstStyle"
#define PREF_LabelFormat   "/labelFormatStr"
#define PREF_SrcLabel1   "/srcLabel1"
#define PREF_SrcLabel2   "/srcLabel2"
#define PREF_DstLabel1   "/dstLabel1"
#define PREF_DstLabel2   "/dstLabel2"
#define PREF_ConnectionAutoRoutingEnabled   "/isAutoRouted"

Typedefs

typedef std::vector< std::stringBON::RoleVec
typedef std::pair
< MON::Connection, RoleVec > 
BON::RoleMeta2

Functions

ProjectImpl * BON::_getProject (IMgaObject *spObject, ProjectImpl *pProject)
MON::ObjectPtr BON::_getMetaBase (IMgaObject *spObject)
std::string BON::_getMetaName (IMgaObject *spObject)
long BON::_getMetaRef (IMgaObject *spObject)
MON::Containment BON::_getMetaRole (IMgaFCO *spFCO)
void BON::_checkIsCallable (ObjectImpl *pObject)
bool BON::_isAddOn ()
template<class T >
std::set< T > & BON::filterByAspect (std::set< T > &inSet, const MON::Aspect &meta)
template<class T , class TI >
void BON::setCopy (const std::set< TI * > &setIn, std::set< T > &setOut)
template<class T , class TI , class TC >
void BON::setCastCopy (const std::set< TI * > &setIn, std::set< T > &setOut)
bool BON::Convert (const std::string &strValue, long &lValue, bool bIsHexa)
bool BON::Convert (const std::string &strValue, COLORREF &crValue)
std::string BON::Convert (COLORREF crValue)
bool BON::Convert (const std::string &strValueIn, NamePosition &eValue)
std::string BON::Convert (NamePosition pos)
bool BON::Convert (const std::string &strValue, LineType &eType)
std::string BON::Convert (LineType eType)
bool BON::Convert (const std::string &strValue, LineEndType &eType)
std::string BON::Convert (LineEndType eType)

Variables

const bool g_GME_ADDON
const bool g_TEST_META_CONFORMANCE_INSIDE_BON

Define Documentation

#define COMTHROW (  )     BONCOMTHROW(x)

Definition at line 26 of file BONImpl.cpp.

#define PREF_BackgroundColor   "/backgroundColor"

Definition at line 174 of file BONImpl.cpp.

#define PREF_BorderColor   "/borderColor"

Definition at line 173 of file BONImpl.cpp.

#define PREF_Color   "/color"

Definition at line 156 of file BONImpl.cpp.

#define PREF_ConnectionAutoRoutingEnabled   "/isAutoRouted"

Definition at line 184 of file BONImpl.cpp.

#define PREF_Decorator   "/decorator"

Definition at line 168 of file BONImpl.cpp.

#define PREF_DstLabel1   "/dstLabel1"

Definition at line 182 of file BONImpl.cpp.

#define PREF_DstLabel2   "/dstLabel2"

Definition at line 183 of file BONImpl.cpp.

#define PREF_DstLineEndType   "/dstStyle"

Definition at line 178 of file BONImpl.cpp.

#define PREF_HelpURL   "/help"

Definition at line 159 of file BONImpl.cpp.

#define PREF_HotSpotEnabled   "/isHotspotEnabled"

Definition at line 164 of file BONImpl.cpp.

#define PREF_Icon   "/icon"

Definition at line 169 of file BONImpl.cpp.

#define PREF_InstanceIcon   "/instanceIcon"

Definition at line 172 of file BONImpl.cpp.

#define PREF_LabelFormat   "/labelFormatStr"

Definition at line 179 of file BONImpl.cpp.

#define PREF_LineType   "/lineType"

Definition at line 176 of file BONImpl.cpp.

#define PREF_Location1   "PartRegs/"

Definition at line 160 of file BONImpl.cpp.

#define PREF_Location2   "/Position"

Definition at line 161 of file BONImpl.cpp.

#define PREF_ModelAutoRoutingEnabled   "/isModelAutoRouted"

Definition at line 167 of file BONImpl.cpp.

#define PREF_NameColor   "/nameColor"

Definition at line 157 of file BONImpl.cpp.

#define PREF_NameEnabled   "/isNameEnabled"

Definition at line 158 of file BONImpl.cpp.

#define PREF_NamePosition   "/namePosition"

Definition at line 162 of file BONImpl.cpp.

#define PREF_NameWrap   "/nameWrap"

Definition at line 163 of file BONImpl.cpp.

#define PREF_PortIcon   "/porticon"

Definition at line 170 of file BONImpl.cpp.

#define PREF_PortNameColor   "/portColor"

Definition at line 175 of file BONImpl.cpp.

#define PREF_SrcLabel1   "/srcLabel1"

Definition at line 180 of file BONImpl.cpp.

#define PREF_SrcLabel2   "/srcLabel2"

Definition at line 181 of file BONImpl.cpp.

#define PREF_SrcLineEndType   "/srcStyle"

Definition at line 177 of file BONImpl.cpp.

#define PREF_SubTypeIcon   "/subTypeIcon"

Definition at line 171 of file BONImpl.cpp.

#define PREF_TypeInfoEnabled   "/isTypeInfoShown"

Definition at line 166 of file BONImpl.cpp.

#define PREF_TypeNameEnabled   "/isTypeShown"

Definition at line 165 of file BONImpl.cpp.

#define THROW_CANNOT_BE_EMPTY ( WHAT,
THESTR   ) 
Value:
if ( THESTR.empty() )                                                   \
                        ASSERTTHROW( Exception( std::string( WHAT ) + " cannot be empty string!" ) );

Definition at line 152 of file BONImpl.cpp.

#define THROW_CANNOT_BE_NULL ( META,
CLASS   ) 
Value:
if ( ! META )                                                                   \
                        {\
                        ASSERTTHROW( Exception( std::string( CLASS ) + " cannot be null!" ) );\
                        }

Definition at line 146 of file BONImpl.cpp.

#define THROW_METAPROJECT_BELONG ( META   ) 
Value:
if ( META.project() != getProject()->getProjectMeta() ) \
                {     \
                        MON::Exception exc( "? does not belong to ? of ?!");  \
                        exc << META.infoString() << getProject()->getProjectMeta().infoString() << getProject()->getInfoString(); \
                        ASSERTTHROW( exc); \
                }

Definition at line 122 of file BONImpl.cpp.

#define THROW_METAPROJECT_DOES_NOT_HAVE ( META,
CLASS,
NAME   ) 
Value:
if ( ! META )                                                                                                   \
                        {\
                                MON::Exception exc( "MON::##CLASS [ ? ] does not exist in ? of ?!");\
                                exc << NAME.c_str() << getProject()->getProjectMeta().infoString().c_str() << getProject()->getInfoString().c_str();\
                                ASSERTTHROW( exc );\
                        }

Definition at line 138 of file BONImpl.cpp.

#define THROW_PROJECT_BELONG ( OBJECT   ) 
Value:
if ( OBJECT->getProject() != getProject() )                                     \
                {  \
                        BON::Exception exc( "? does not belong to ?!");    \
                        exc << OBJECT->getInfoString().c_str() << getProject()->getInfoString().c_str(); \
                        ASSERTTHROW( exc );   \
                }

Definition at line 130 of file BONImpl.cpp.


Variable Documentation

const bool g_GME_ADDON
Generated on Thu May 30 15:42:55 2013 for GME by  doxygen 1.6.3