Teamcenter C++ API Reference  2312
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Teamcenter::Markpoint Class Reference

Manages markpoint for POM rollback mechanism. More...

#include <Markpoint.hxx>

Public Member Functions

void forget ()
 
 Markpoint ()
 
virtual ~Markpoint ()
 

Private Member Functions

 Markpoint (const Markpoint &other)
 
Markpointoperator= (const Markpoint &other)
 

Private Attributes

bool m_forgotten
 
int m_pomMarkpoint
 

Detailed Description

Manages markpoint for POM rollback mechanism.

Use as follows:

{
Markpoint markpoint; // Place a POM markpoint.
if ( someCall() != OK )
{
return NOT_OK; // Destructor automatically rolls back (unless forget has been called).
}
markpoint.forget(); // Forget the markpoint - now destructor will not roll back.
return OK;
}

Definition at line 37 of file Markpoint.hxx.

Constructor & Destructor Documentation

Teamcenter::Markpoint::Markpoint ( )

Constructor.
It places a POM markpoint for POM rollback.

virtual Teamcenter::Markpoint::~Markpoint ( )
virtual

Destructor.
It automatically rolls back to the POM markpoint.

Teamcenter::Markpoint::Markpoint ( const Markpoint other)
private

Copy constructor.

Member Function Documentation

void Teamcenter::Markpoint::forget ( )

Forgets the previous markpoint.
Once the markpoint is forgotten, the destructor cannot rollback anymore.

Markpoint& Teamcenter::Markpoint::operator= ( const Markpoint other)
private

Assignment operator.

Member Data Documentation

bool Teamcenter::Markpoint::m_forgotten
private

Indicates if the markpoint is forgotten.

Definition at line 73 of file Markpoint.hxx.

int Teamcenter::Markpoint::m_pomMarkpoint
private

The markpoint ID.

Definition at line 70 of file Markpoint.hxx.


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