GME  13
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
CMakeClosure Class Reference

#include <MakeClosure.h>

Inheritance diagram for CMakeClosure:
Inheritance graph
[legend]
Collaboration diagram for CMakeClosure:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CMakeClosure (IMgaFCOs *fcos, IMgaFolders *fols, int ref=1, int refd=1, int conn=1, int refport_conn=1, int set_mem=1, int mem_of_set=1, int cont=1, int part_of_mod=1, int fold_cont=1, int part_of_fold=1, int base_type=1, int derived_type=1, int into_libr=0, int container_opt=0, int direction_opt=1, int all_kinds=-1, int mark_with=-1)
virtual ~CMakeClosure ()
long process ()
void getFCOs (IMgaFCOs **res_fcos)
void getFolders (IMgaFolders **res_folds)
bool noTopObjs ()
void clearTopObjs ()
void getTopFCOs (IMgaFCOs **res_fcos)
void getTopFolders (IMgaFolders **res_folds)
bool isAnyAccepting () const
void getAccKindsInString (std::string &p_resStr) const
const std::vector< std::string > & getAccKindsVector () const
void send2Console (const std::string &msg)

Protected Member Functions

void initTrans ()
void doneTrans (bool abort)
void doClosure ()
void processFolders ()
void processFCOs ()
virtual void preProcess ()
virtual void postProcess ()
void selectTop ()
void totalWrap ()
void autoWrap ()
std::string processUpward (IMgaObject *obj, CComObjPtrVector< IMgaFolder > &f_parents, CComObjPtrVector< IMgaModel > &m_parents)
void checkMeta (const CComObjPtrVector< IMgaFolder > &p_folds, const CComObjPtrVector< IMgaFCO > &p_fcos)
template<class T >
void markObj (CComObjPtr< T > obj)
virtual void procObj (IMgaObject *obj)
void procFolder (IMgaFolder *folder)
void procModel (IMgaModel *model)
void procAtom (IMgaAtom *atom)
void procReference (IMgaReference *reference)
void procSet (IMgaSet *set)
void procConnection (IMgaConnection *connection)
void procConnPoint (IMgaConnPoint *connpoint)
void procMyConnections (IMgaFCO *fco)
void procMyContainerSets (IMgaFCO *fco)
void procMyReferences (IMgaFCO *fco)
void procMyParent (IMgaFCO *fco)
void procMyParent (IMgaFolder *fco)
void procMyBaseTypes (IMgaFCO *fco)
void procMyDerivedTypes (IMgaFCO *fco)
bool isSimpleConnection (IMgaConnection *connection)
virtual bool isValidSelection ()
virtual bool isValidFCO (IMgaFCO *fco)
virtual bool isValidConnection (IMgaConnection *connection)
bool isInLibrary (IMgaObject *obj)
virtual bool postValidateSelection ()
virtual bool postValidateFCO (IMgaFCO *fco)
virtual bool postValidateConnection (IMgaConnection *connection)
bool findAmongSelected (const CComObjPtr< IMgaFCO > &in)
bool findAmongSelected (const CComObjPtr< IMgaFolder > &in)
bool findAmongNews (const CComObjPtr< IMgaFCO > &in)
bool findAmongNews (const CComObjPtr< IMgaFolder > &in)
void insertNew (const std::string &id, bool is_the_top=false)
void insertNew (const CComObjPtr< IMgaFCO > &in)
void insertNew (const CComObjPtrVector< IMgaFCO > &in_v)
void insertNew (const CComObjPtr< IMgaFolder > &in)
void insertNew (const CComObjPtrVector< IMgaFolder > &in_v)
void insertNew (const CComObjPtr< IMgaModel > &in)
template<class INTERFACE , class FUNC_INTERFACE , class COLLECTION >
void insertNew (INTERFACE p, HRESULT(__stdcall FUNC_INTERFACE::*func)(COLLECTION **q))

Static Protected Member Functions

static CComPtr< IGMEOLEAppget_GME (CComObjPtr< IMgaProject > project)

Protected Attributes

std::vector< std::stringm_acceptingKindsAndFolders
CComPtr< IGMEOLEAppm_GME
CComObjPtr< IMgaProjectm_project
CComObjPtr< IMgaTerritorym_territory
CComObjPtrVector< IMgaFolderm_selFolds
CComObjPtrVector< IMgaFCOm_selFcos
CComObjPtrVector< IMgaFCOm_newlySelFcos
CComObjPtrVector< IMgaFolderm_newlySelFolds
CComObjPtrVector< IMgaFolderm_topFolds
CComObjPtrVector< IMgaFCOm_topFcos
bool m_bRefersTo
bool m_bReferredBy
bool m_bConnection
bool m_bRefPortConnection
bool m_bSetMember
bool m_bMemberOfSets
bool m_bContainment
bool m_bPartOfModels
bool m_bFolderContainment
bool m_bPartOfFolders
bool m_bBaseTypes
bool m_bDerivedTypes
int m_iIntoLibraries
int m_iContainerOption
bool m_bDirection
int m_kindFilter
int m_markWith

Static Protected Attributes

static const wchar_t * m_markerNode = "inClosure"

Detailed Description

Definition at line 30 of file MakeClosure.h.


Constructor & Destructor Documentation

CMakeClosure::CMakeClosure ( IMgaFCOs *  fcos,
IMgaFolders *  fols,
int  ref = 1,
int  refd = 1,
int  conn = 1,
int  refport_conn = 1,
int  set_mem = 1,
int  mem_of_set = 1,
int  cont = 1,
int  part_of_mod = 1,
int  fold_cont = 1,
int  part_of_fold = 1,
int  base_type = 1,
int  derived_type = 1,
int  into_libr = 0,
int  container_opt = 0,
int  direction_opt = 1,
int  all_kinds = -1,
int  mark_with = -1 
) [inline]

Definition at line 33 of file MakeClosure.h.

virtual CMakeClosure::~CMakeClosure ( ) [inline, virtual]

Definition at line 74 of file MakeClosure.h.


Member Function Documentation

void CMakeClosure::autoWrap ( ) [protected]

Definition at line 1105 of file MakeClosure.cpp.

void CMakeClosure::checkMeta ( const CComObjPtrVector< IMgaFolder > &  p_folds,
const CComObjPtrVector< IMgaFCO > &  p_fcos 
) [protected]

Definition at line 1353 of file MakeClosure.cpp.

Definition at line 1605 of file MakeClosure.cpp.

void CMakeClosure::doClosure ( ) [protected]

Definition at line 176 of file MakeClosure.cpp.

void CMakeClosure::doneTrans ( bool  abort) [protected]

Definition at line 1555 of file MakeClosure.cpp.

bool CMakeClosure::findAmongNews ( const CComObjPtr< IMgaFCO > &  in) [protected]

Definition at line 969 of file MakeClosure.cpp.

bool CMakeClosure::findAmongNews ( const CComObjPtr< IMgaFolder > &  in) [protected]

Definition at line 974 of file MakeClosure.cpp.

bool CMakeClosure::findAmongSelected ( const CComObjPtr< IMgaFCO > &  in) [protected]

Definition at line 959 of file MakeClosure.cpp.

bool CMakeClosure::findAmongSelected ( const CComObjPtr< IMgaFolder > &  in) [protected]

Definition at line 964 of file MakeClosure.cpp.

CComPtr< IGMEOLEApp > CMakeClosure::get_GME ( CComObjPtr< IMgaProject project) [static, protected]

Definition at line 445 of file MakeClosure.cpp.

void CMakeClosure::getAccKindsInString ( std::string p_resStr) const

Definition at line 1640 of file MakeClosure.cpp.

const std::vector< std::string > & CMakeClosure::getAccKindsVector ( ) const

Definition at line 1651 of file MakeClosure.cpp.

void CMakeClosure::getFCOs ( IMgaFCOs **  res_fcos)

Definition at line 1572 of file MakeClosure.cpp.

void CMakeClosure::getFolders ( IMgaFolders **  res_folds)

Definition at line 1584 of file MakeClosure.cpp.

void CMakeClosure::getTopFCOs ( IMgaFCOs **  res_fcos)

Definition at line 1611 of file MakeClosure.cpp.

void CMakeClosure::getTopFolders ( IMgaFolders **  res_folds)

Definition at line 1623 of file MakeClosure.cpp.

void CMakeClosure::initTrans ( ) [protected]

Definition at line 1520 of file MakeClosure.cpp.

void CMakeClosure::insertNew ( const std::string id,
bool  is_the_top = false 
) [protected]

Definition at line 859 of file MakeClosure.cpp.

void CMakeClosure::insertNew ( const CComObjPtr< IMgaFCO > &  in) [protected]

Definition at line 912 of file MakeClosure.cpp.

void CMakeClosure::insertNew ( const CComObjPtrVector< IMgaFCO > &  in_v) [protected]

Definition at line 945 of file MakeClosure.cpp.

void CMakeClosure::insertNew ( const CComObjPtr< IMgaFolder > &  in) [protected]

Definition at line 923 of file MakeClosure.cpp.

void CMakeClosure::insertNew ( const CComObjPtrVector< IMgaFolder > &  in_v) [protected]

Definition at line 952 of file MakeClosure.cpp.

void CMakeClosure::insertNew ( const CComObjPtr< IMgaModel > &  in) [protected]

Definition at line 934 of file MakeClosure.cpp.

template<class INTERFACE , class FUNC_INTERFACE , class COLLECTION >
void CMakeClosure::insertNew ( INTERFACE  p,
HRESULT(__stdcall FUNC_INTERFACE::*)(COLLECTION **q)  func 
) [inline, protected]

Definition at line 165 of file MakeClosure.h.

Definition at line 1635 of file MakeClosure.cpp.

bool CMakeClosure::isInLibrary ( IMgaObject obj) [protected]

Definition at line 979 of file MakeClosure.cpp.

bool CMakeClosure::isSimpleConnection ( IMgaConnection connection) [protected]

Definition at line 466 of file MakeClosure.cpp.

bool CMakeClosure::isValidConnection ( IMgaConnection connection) [protected, virtual]

Definition at line 486 of file MakeClosure.cpp.

bool CMakeClosure::isValidFCO ( IMgaFCO fco) [protected, virtual]

Definition at line 431 of file MakeClosure.cpp.

bool CMakeClosure::isValidSelection ( ) [protected, virtual]

Reimplemented in CSimpleSelectClosure.

Definition at line 416 of file MakeClosure.cpp.

template<class T >
void CMakeClosure::markObj ( CComObjPtr< T >  obj) [protected]

Definition at line 687 of file MakeClosure.cpp.

Definition at line 1596 of file MakeClosure.cpp.

void CMakeClosure::postProcess ( ) [protected, virtual]

Reimplemented in CSimpleSelectClosure.

Definition at line 201 of file MakeClosure.cpp.

bool CMakeClosure::postValidateConnection ( IMgaConnection connection) [protected, virtual]

Definition at line 547 of file MakeClosure.cpp.

bool CMakeClosure::postValidateFCO ( IMgaFCO fco) [protected, virtual]

Definition at line 542 of file MakeClosure.cpp.

bool CMakeClosure::postValidateSelection ( ) [protected, virtual]

Definition at line 536 of file MakeClosure.cpp.

void CMakeClosure::preProcess ( ) [protected, virtual]

Reimplemented in CSimpleSelectClosure.

Definition at line 196 of file MakeClosure.cpp.

void CMakeClosure::procAtom ( IMgaAtom atom) [protected]

Definition at line 409 of file MakeClosure.cpp.

void CMakeClosure::procConnection ( IMgaConnection connection) [protected]

Definition at line 552 of file MakeClosure.cpp.

void CMakeClosure::procConnPoint ( IMgaConnPoint connpoint) [protected]

Definition at line 572 of file MakeClosure.cpp.

Definition at line 162 of file MakeClosure.cpp.

void CMakeClosure::processFCOs ( ) [protected]

Definition at line 327 of file MakeClosure.cpp.

void CMakeClosure::processFolders ( ) [protected]

Definition at line 301 of file MakeClosure.cpp.

std::string CMakeClosure::processUpward ( IMgaObject obj,
CComObjPtrVector< IMgaFolder > &  f_parents,
CComObjPtrVector< IMgaModel > &  m_parents 
) [protected]

Definition at line 1030 of file MakeClosure.cpp.

void CMakeClosure::procFolder ( IMgaFolder folder) [protected]

Definition at line 355 of file MakeClosure.cpp.

void CMakeClosure::procModel ( IMgaModel model) [protected]

Definition at line 367 of file MakeClosure.cpp.

void CMakeClosure::procMyBaseTypes ( IMgaFCO fco) [protected]

Definition at line 833 of file MakeClosure.cpp.

void CMakeClosure::procMyConnections ( IMgaFCO fco) [protected]

Definition at line 609 of file MakeClosure.cpp.

void CMakeClosure::procMyContainerSets ( IMgaFCO fco) [protected]

Definition at line 626 of file MakeClosure.cpp.

void CMakeClosure::procMyDerivedTypes ( IMgaFCO fco) [protected]

Definition at line 849 of file MakeClosure.cpp.

void CMakeClosure::procMyParent ( IMgaFCO fco) [protected]

Definition at line 646 of file MakeClosure.cpp.

void CMakeClosure::procMyParent ( IMgaFolder fco) [protected]

Definition at line 672 of file MakeClosure.cpp.

void CMakeClosure::procMyReferences ( IMgaFCO fco) [protected]

Definition at line 636 of file MakeClosure.cpp.

void CMakeClosure::procObj ( IMgaObject obj) [protected, virtual]

m_bIntoLibraries <=> m_iIntoLibraries != 2

Reimplemented in CSimpleSelectClosure.

Definition at line 712 of file MakeClosure.cpp.

void CMakeClosure::procReference ( IMgaReference reference) [protected]

Definition at line 378 of file MakeClosure.cpp.

void CMakeClosure::procSet ( IMgaSet set) [protected]

Definition at line 395 of file MakeClosure.cpp.

void CMakeClosure::selectTop ( ) [protected]

Definition at line 235 of file MakeClosure.cpp.

void CMakeClosure::send2Console ( const std::string msg)

Definition at line 1656 of file MakeClosure.cpp.

void CMakeClosure::totalWrap ( ) [protected]

Definition at line 987 of file MakeClosure.cpp.


Member Data Documentation

Definition at line 119 of file MakeClosure.h.

bool CMakeClosure::m_bBaseTypes [protected]

Definition at line 239 of file MakeClosure.h.

bool CMakeClosure::m_bConnection [protected]

Definition at line 227 of file MakeClosure.h.

bool CMakeClosure::m_bContainment [protected]

Definition at line 233 of file MakeClosure.h.

Definition at line 240 of file MakeClosure.h.

bool CMakeClosure::m_bDirection [protected]

Definition at line 246 of file MakeClosure.h.

Definition at line 236 of file MakeClosure.h.

Definition at line 231 of file MakeClosure.h.

Definition at line 237 of file MakeClosure.h.

Definition at line 234 of file MakeClosure.h.

bool CMakeClosure::m_bReferredBy [protected]

Definition at line 225 of file MakeClosure.h.

bool CMakeClosure::m_bRefersTo [protected]

Definition at line 224 of file MakeClosure.h.

Definition at line 228 of file MakeClosure.h.

bool CMakeClosure::m_bSetMember [protected]

Definition at line 230 of file MakeClosure.h.

CComPtr<IGMEOLEApp> CMakeClosure::m_GME [protected]

Definition at line 208 of file MakeClosure.h.

Definition at line 244 of file MakeClosure.h.

Definition at line 242 of file MakeClosure.h.

Definition at line 248 of file MakeClosure.h.

const wchar_t * CMakeClosure::m_markerNode = "inClosure" [static, protected]

Definition at line 250 of file MakeClosure.h.

Definition at line 249 of file MakeClosure.h.

Definition at line 216 of file MakeClosure.h.

Definition at line 217 of file MakeClosure.h.

Definition at line 210 of file MakeClosure.h.

Definition at line 214 of file MakeClosure.h.

Definition at line 213 of file MakeClosure.h.

Definition at line 211 of file MakeClosure.h.

Definition at line 221 of file MakeClosure.h.

Definition at line 220 of file MakeClosure.h.


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