cgma
|
#include <CAMergeStatus.hpp>
Public Member Functions | |
CAMergeStatus (RefEntity *, const CubitSimpleAttrib &) | |
virtual | ~CAMergeStatus () |
virtual CubitSimpleAttrib | cubit_simple_attrib () |
virtual CubitStatus | actuate () |
virtual CubitStatus | update () |
virtual CubitStatus | reset () |
virtual int | int_attrib_type () |
Private Attributes | |
AutoMergeStatus | status |
Definition at line 21 of file CAMergeStatus.hpp.
CAMergeStatus::CAMergeStatus | ( | RefEntity * | owner, |
const CubitSimpleAttrib & | csa | ||
) |
Definition at line 22 of file CAMergeStatus.cpp.
: CubitAttrib( owner ) { status = AUTO_MERGE_AUTO; if(!csa.isEmpty()) { assert( csa.int_data_list().size() == 1 ); int i = csa.int_data_list()[0]; assert( i == 0 || i == 1 || i == 2 ); status = (AutoMergeStatus)i; } }
CAMergeStatus::~CAMergeStatus | ( | ) | [virtual] |
Definition at line 35 of file CAMergeStatus.cpp.
{ }
CubitStatus CAMergeStatus::actuate | ( | ) | [virtual] |
Implements CubitAttrib.
Definition at line 38 of file CAMergeStatus.cpp.
{ if( hasActuated ) return CUBIT_SUCCESS; if( !attribOwnerEntity ) return CUBIT_FAILURE; DLIList<CubitAttrib*> att_list; attribOwnerEntity->find_cubit_attrib_type(CA_MERGE_PARTNER, att_list); if( att_list.size() ) return CUBIT_FAILURE; assert( status == AUTO_MERGE_ON || status == AUTO_MERGE_OFF ); attribOwnerEntity->is_mergeable(status); deleteAttrib = CUBIT_FALSE; hasActuated = CUBIT_TRUE; return CUBIT_SUCCESS; }
CubitSimpleAttrib CAMergeStatus::cubit_simple_attrib | ( | ) | [virtual] |
Implements CubitAttrib.
Definition at line 82 of file CAMergeStatus.cpp.
{ if( deleteAttrib ) return CubitSimpleAttrib(); assert( status != AUTO_MERGE_AUTO ); std::vector<CubitString> string_list; string_list.push_back(att_internal_name()); int int_data = (int)status; std::vector<int> int_list; int_list.push_back( int_data ); return CubitSimpleAttrib( &string_list, 0, &int_list ); }
int CAMergeStatus::int_attrib_type | ( | ) | [virtual] |
Implements CubitAttrib.
Definition at line 99 of file CAMergeStatus.cpp.
{ return CA_MERGE_STATUS; }
CubitStatus CAMergeStatus::reset | ( | ) | [virtual] |
CubitStatus CAMergeStatus::update | ( | ) | [virtual] |
Implements CubitAttrib.
Definition at line 60 of file CAMergeStatus.cpp.
{ if( hasUpdated ) return CUBIT_SUCCESS; if( !attribOwnerEntity ) return CUBIT_FAILURE; status = attribOwnerEntity->merge_status(); if( status == AUTO_MERGE_AUTO ) delete_attrib(CUBIT_TRUE); else hasUpdated = CUBIT_TRUE; return CUBIT_SUCCESS; }
AutoMergeStatus CAMergeStatus::status [private] |
Definition at line 25 of file CAMergeStatus.hpp.