MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLVersionHistorySet Class Reference

Detailed Description

This class holds the complete list of versions and timestamps for a data layer. It represents the version history of the layer. The timestamp indicates the time at which each version of the data layer was archived.

Public Member Functions

 TSLVersionHistorySet ()
 
void destroy ()
 
bool empty () const
 
void getHistory (int N, TSLHistoryVersion &version, TSLHistoryTimestamp &timestamp, const TSLVersionUserInfo *&userInfo) const
 
TSLHistoryVersion getCurrentArchiveVersion () const
 
TSLHistoryVersion getNearestArchiveVersion (TSLHistoryTimestamp timestamp) const
 
int size () const
 
void * operator new (size_t size) TSL_NO_THROW
 
void * operator new (size_t size, char *filename, int line)
 

Constructor & Destructor Documentation

◆ TSLVersionHistorySet()

TSLVersionHistorySet::TSLVersionHistorySet ( )

Default constructor

Member Function Documentation

◆ destroy()

void TSLVersionHistorySet::destroy ( )

Destroy method - used to delete the object.

◆ empty()

bool TSLVersionHistorySet::empty ( ) const

Returns true if the collection is empty, false otherwise.

◆ getCurrentArchiveVersion()

TSLHistoryVersion TSLVersionHistorySet::getCurrentArchiveVersion ( ) const

Returns the version number that is currently being archived.

◆ getHistory()

void TSLVersionHistorySet::getHistory ( int N,
TSLHistoryVersion & version,
TSLHistoryTimestamp & timestamp,
const TSLVersionUserInfo *& userInfo ) const

Returns information for the Nth history in the collection.

Parameters
NThe index required.
versionThe version number of the Nth history.
timestampThe timestamp of the Nth history.
userInfoA list of the user versions and their change extents for the Nth history. Note that the user should not attempt to modify the contents of this list.

◆ getNearestArchiveVersion()

TSLHistoryVersion TSLVersionHistorySet::getNearestArchiveVersion ( TSLHistoryTimestamp timestamp) const

Returns the version number of the history that most closely matches the given timestamp.

Parameters
timestampThe timestamp.
Returns
Version that is closest to the timestamp or return 0.

◆ operator new() [1/2]

void * TSLVersionHistorySet::operator new ( size_t size)

Overridden allocation to redirect to MapLink.

◆ operator new() [2/2]

void * TSLVersionHistorySet::operator new ( size_t size,
char * filename,
int line )

When included in an MFC application in debug mode, the debug new expects this to be here. Override it and return the same as the normal one. The library must include it when compiled in release mode, since the user's application may be in debug mode.

◆ size()

int TSLVersionHistorySet::size ( ) const

Returns the size of the collection.