GME  13
Classes | Namespaces | Defines | Typedefs
OCLObjectExBasic.h File Reference

Go to the source code of this file.

Classes

class  OclBasic::String
class  OclBasic::Enumeration
class  OclBasic::Boolean
class  OclBasic::Real
class  OclBasic::Integer
class  OclBasic::Type
class  OclBasic::Set
class  OclBasic::Bag
class  OclBasic::Sequence
class  OclBasic::OrderedSet

Namespaces

namespace  OclMeta
namespace  OclBasic

Defines

#define CREATE_BOOLEAN(pManager, bValue)   OclMeta::Object( new OclBasic::Boolean( pManager, bValue ) )
#define CREATE_STRING(pManager, strValue)   OclMeta::Object( new OclBasic::String( pManager, strValue ) )
#define CREATE_ENUMERATION(pManager, eValue)   OclMeta::Object( new OclBasic::Enumeration( pManager, eValue ) )
#define CREATE_REAL(pManager, dValue)   OclMeta::Object( new OclBasic::Real( pManager, dValue ) )
#define CREATE_INTEGER(pManager, lValue)   OclMeta::Object( new OclBasic::Integer( pManager, lValue ) )
#define CREATE_TYPE(pManager, lValue)   OclMeta::Object( new OclBasic::Type( pManager, lValue ) )
#define DECL_BOOLEAN(varName, var2Name)
#define DECL_STRING(varName, var2Name)
#define DECL_ENUMERATION(varName, var2Name)
#define DECL_REAL(varName, var2Name)
#define DECL_INTEGER(varName, var2Name)
#define DECL_TYPE(varName, var2Name)
#define DECL_BOOLEAN2(varName, var2Name)
#define DECL_STRING2(varName, var2Name)
#define DECL_ENUMERATION2(varName, var2Name)
#define DECL_REAL2(varName, var2Name)
#define DECL_INTEGER2(varName, var2Name)
#define DECL_TYPE2(varName, var2Name)
#define CREATE_SET(pManager, setValue)   OclMeta::Object( new OclBasic::Set( pManager, setValue ) )
#define CREATE_SEQUENCE(pManager, seqValue)   OclMeta::Object( new OclBasic::Sequence( pManager, seqValue ) )
#define CREATE_BAG(pManager, bagValue)   OclMeta::Object( new OclBasic::Bag( pManager, bagValue ) )
#define CREATE_ORDEREDSET(pManager, osetValue)   OclMeta::Object( new OclBasic::OrderedSet( pManager, osetValue ) )
#define DECL_COLLECTION(varName, var2Name)
#define DECL_COLLECTION2(varName, var2Name)
#define DECL_ITERATOR(varName, var2Name)   OclCommon::Smart< OclImplementation::ObjectIterator > varName( ( (OclImplementation::CompoundObject*) var2Name.GetImplementation() )->GetIterator() )

Typedefs

typedef OclImplementation::Object OclBasic::Any
typedef
OclImplementation::CompoundObject 
OclBasic::Collection

Define Documentation

#define CREATE_BAG (   pManager,
  bagValue 
)    OclMeta::Object( new OclBasic::Bag( pManager, bagValue ) )

Definition at line 93 of file OCLObjectExBasic.h.

#define CREATE_BOOLEAN (   pManager,
  bValue 
)    OclMeta::Object( new OclBasic::Boolean( pManager, bValue ) )

Definition at line 15 of file OCLObjectExBasic.h.

#define CREATE_ENUMERATION (   pManager,
  eValue 
)    OclMeta::Object( new OclBasic::Enumeration( pManager, eValue ) )

Definition at line 21 of file OCLObjectExBasic.h.

#define CREATE_INTEGER (   pManager,
  lValue 
)    OclMeta::Object( new OclBasic::Integer( pManager, lValue ) )

Definition at line 27 of file OCLObjectExBasic.h.

#define CREATE_ORDEREDSET (   pManager,
  osetValue 
)    OclMeta::Object( new OclBasic::OrderedSet( pManager, osetValue ) )

Definition at line 96 of file OCLObjectExBasic.h.

#define CREATE_REAL (   pManager,
  dValue 
)    OclMeta::Object( new OclBasic::Real( pManager, dValue ) )

Definition at line 24 of file OCLObjectExBasic.h.

#define CREATE_SEQUENCE (   pManager,
  seqValue 
)    OclMeta::Object( new OclBasic::Sequence( pManager, seqValue ) )

Definition at line 90 of file OCLObjectExBasic.h.

#define CREATE_SET (   pManager,
  setValue 
)    OclMeta::Object( new OclBasic::Set( pManager, setValue ) )

Definition at line 87 of file OCLObjectExBasic.h.

#define CREATE_STRING (   pManager,
  strValue 
)    OclMeta::Object( new OclBasic::String( pManager, strValue ) )

Definition at line 18 of file OCLObjectExBasic.h.

#define CREATE_TYPE (   pManager,
  lValue 
)    OclMeta::Object( new OclBasic::Type( pManager, lValue ) )

Definition at line 30 of file OCLObjectExBasic.h.

#define DECL_BOOLEAN (   varName,
  var2Name 
)
Value:
bool varName = false;                                                                   \
                if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Boolean* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 33 of file OCLObjectExBasic.h.

#define DECL_BOOLEAN2 (   varName,
  var2Name 
)
Value:
if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Boolean* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 63 of file OCLObjectExBasic.h.

#define DECL_COLLECTION (   varName,
  var2Name 
)
Value:
OclMeta::ObjectVector varName;  \
                if ( ! var2Name.IsUndefined() ) {               \
                        if ( var2Name.GetTypeName() == "ocl::Set" )      \
                                ( ( OclBasic::Set* ) var2Name.GetImplementation() )->GetValue( varName );       \
                        else if ( var2Name.GetTypeName() == "ocl::Bag" )        \
                                ( ( OclBasic::Bag* ) var2Name.GetImplementation() )->GetValue( varName );       \
                        else if ( var2Name.GetTypeName() == "ocl::Sequence" )   \
                                ( ( OclBasic::Sequence* ) var2Name.GetImplementation() )->GetValue( varName );  \
                        else \
                                ( ( OclBasic::OrderedSet* ) var2Name.GetImplementation() )->GetValue( varName ); \
                }

Definition at line 99 of file OCLObjectExBasic.h.

#define DECL_COLLECTION2 (   varName,
  var2Name 
)
Value:
if ( ! var2Name.IsUndefined() ) {               \
                        if ( var2Name.GetTypeName() == "ocl::Set" )     \
                                ( ( OclBasic::Set* ) var2Name.GetImplementation() )->GetValue( varName );       \
                        else if ( var2Name.GetTypeName() == "ocl::Bag" )        \
                                ( ( OclBasic::Bag* ) var2Name.GetImplementation() )->GetValue( varName );       \
                        else if ( var2Name.GetTypeName() == "ocl::Sequence" )   \
                                ( ( OclBasic::Sequence* ) var2Name.GetImplementation() )->GetValue( varName );  \
                        else \
                                ( ( OclBasic::OrderedSet* ) var2Name.GetImplementation() )->GetValue( varName );        \
                }

Definition at line 112 of file OCLObjectExBasic.h.

#define DECL_ENUMERATION (   varName,
  var2Name 
)
Value:
std::string varName;                                                                                    \
                if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Enumeration* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 43 of file OCLObjectExBasic.h.

#define DECL_ENUMERATION2 (   varName,
  var2Name 
)
Value:
if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Enumeration* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 71 of file OCLObjectExBasic.h.

#define DECL_INTEGER (   varName,
  var2Name 
)
Value:
long varName = 0;                                                                                       \
                if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Integer* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 53 of file OCLObjectExBasic.h.

#define DECL_INTEGER2 (   varName,
  var2Name 
)
Value:
if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Integer* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 79 of file OCLObjectExBasic.h.

#define DECL_ITERATOR (   varName,
  var2Name 
)    OclCommon::Smart< OclImplementation::ObjectIterator > varName( ( (OclImplementation::CompoundObject*) var2Name.GetImplementation() )->GetIterator() )

Definition at line 124 of file OCLObjectExBasic.h.

#define DECL_REAL (   varName,
  var2Name 
)
Value:
double varName = 0.0;                                                                           \
                if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Real* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 48 of file OCLObjectExBasic.h.

#define DECL_REAL2 (   varName,
  var2Name 
)
Value:
if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Real* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 75 of file OCLObjectExBasic.h.

#define DECL_STRING (   varName,
  var2Name 
)
Value:
std::string varName;                                                                            \
                if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::String* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 38 of file OCLObjectExBasic.h.

#define DECL_STRING2 (   varName,
  var2Name 
)
Value:
if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::String* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 67 of file OCLObjectExBasic.h.

#define DECL_TYPE (   varName,
  var2Name 
)
Value:
std::string varName;                                                                            \
                if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Type* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 58 of file OCLObjectExBasic.h.

#define DECL_TYPE2 (   varName,
  var2Name 
)
Value:
if ( ! var2Name.IsUndefined() )                 \
                        ( ( OclBasic::Type* ) var2Name.GetImplementation() )->GetValue( varName )

Definition at line 83 of file OCLObjectExBasic.h.