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

Detailed Description

This class is used for writing a GML application schema

Public Member Functions

 TSLGMLApplicationSchemaWriter ()
 
void destroy ()
 
bool write (const char *filename, const TSLGMLApplicationSchema *schema)
 
bool write (char *&bufferPtr, unsigned int &bufferLen, const TSLGMLApplicationSchema *schema)
 
void * operator new (size_t size)
 
void * operator new (size_t size, char *filename, int line)
 

Static Public Member Functions

static void deleteBuffer (const char *buffer)
 

Constructor & Destructor Documentation

◆ TSLGMLApplicationSchemaWriter()

TSLGMLApplicationSchemaWriter::TSLGMLApplicationSchemaWriter ( )

Member Function Documentation

◆ deleteBuffer()

static void TSLGMLApplicationSchemaWriter::deleteBuffer ( const char * buffer)
static

Buffers provided via the write should be freed by calling this method.

Parameters
bufferThe buffer to be deleted.

◆ destroy()

void TSLGMLApplicationSchemaWriter::destroy ( )

Destroy this object.

This method must be used instead of delete.

◆ operator new() [1/2]

void * TSLGMLApplicationSchemaWriter::operator new ( size_t size)

◆ operator new() [2/2]

void * TSLGMLApplicationSchemaWriter::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.

◆ write() [1/2]

bool TSLGMLApplicationSchemaWriter::write ( char *& bufferPtr,
unsigned int & bufferLen,
const TSLGMLApplicationSchema * schema )

Writes a GML application schema to a buffer.

Parameters
bufferPtrOn success, this will be pointed to a buffer containing the written schema. Once this buffer is no longer needed, it should be deleted via the deleteBuffer method.
bufferLenOn success, this will be populated with the length of the buffer provided in the bufferPtr parameter.
schemaThe GML application schema to write.
Returns
true on success, false otherwise. Check the MapLink error stack for the reason for a failure.

◆ write() [2/2]

bool TSLGMLApplicationSchemaWriter::write ( const char * filename,
const TSLGMLApplicationSchema * schema )

Writes a GML application schema to the location specified.

Parameters
filenameThe location to write the GML application schema to.
schemaThe GML application schema to write.
Returns
true on success, false otherwise. Check the MapLink error stack for the reason for a failure.