MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLOWCRemoteContent Class Reference
Inheritance diagram for TSLOWCRemoteContent:

Detailed Description

This class represents data held externally to the context document that is referenced by the document by URL.

Public Member Functions

 TSLOWCRemoteContent (const char *url, const char *mimeType, const char *title)
 
TSLOWCInlineContentfetchContent (TSLFileLoaderRemote *loader=NULL) const
 
const char * title () const
 
const char * url () const
 
void * operator new (size_t size) TSL_NO_THROW
 
void * operator new (size_t size, char *filename, int line)
 
- Public Member Functions inherited from TSLOWCContent
void destroy ()
 
const char * mimeType () const
 
int type () const
 

Additional Inherited Members

- Public Types inherited from TSLOWCContent
enum  ContentTypeEnum { Inline , Remote }
 
- Protected Member Functions inherited from TSLOWCContent
 TSLOWCContent (const char *mimeType)
 
 ~TSLOWCContent ()
 

Constructor & Destructor Documentation

◆ TSLOWCRemoteContent()

TSLOWCRemoteContent::TSLOWCRemoteContent ( const char * url,
const char * mimeType,
const char * title )

Creates a new content object that references data held externally to a context document or resource.

Parameters
urlThe URL of the resource.
mimeTypeThe MIME type of the data pointed to by the URL.
titleA human readable description of what this content represents.

Member Function Documentation

◆ fetchContent()

TSLOWCInlineContent * TSLOWCRemoteContent::fetchContent ( TSLFileLoaderRemote * loader = NULL) const

Fetches the data referenced by the URL and returns it as a new inline content object. The caller assumes ownership of the returned object.

Parameters
loaderAn optional remote loader to use to fetch the data. This can be used to handle retrieval from servers that require authentication by configuring a TSLRemoteAuthenticationCallback on the given loader. If no loader is provided a default one will be used.

◆ operator new() [1/2]

void * TSLOWCRemoteContent::operator new ( size_t size)

◆ operator new() [2/2]

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

◆ title()

const char * TSLOWCRemoteContent::title ( ) const

Returns a human-readable description of the content referenced by the URL.

◆ url()

const char * TSLOWCRemoteContent::url ( ) const

Returns the URL where the data for this content object can be retrieved from.