Cogs.Core
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Cogs::Core::TerrainProvider::HTTPRasterSource Class Referenceabstract
Inheritance diagram for Cogs::Core::TerrainProvider::HTTPRasterSource:
Cogs::Core::TerrainProvider::BaseRasterSource Cogs::Core::TerrainProvider::IRasterSource Cogs::Core::TerrainProvider::WCSRasterSource Cogs::Core::TerrainProvider::WMSRasterSource

Public Member Functions

 HTTPRasterSource (Context *context)
 
bool init (const HTTPConfig &conf, std::unique_ptr< ICache > &&icache)
 
void getConfig (HTTPConfig &conf) const
 
- Public Member Functions inherited from Cogs::Core::TerrainProvider::BaseRasterSource
 BaseRasterSource (Context *context)
 
Cogs::RasterSourceParameters getParameters () const override
 
const CoordSysgetCoordSys () const
 
ErrorCode getErrorCode () const final
 
void setErrorCode (ErrorCode newErrorCode)
 
- Public Member Functions inherited from Cogs::Core::TerrainProvider::IRasterSource
virtual Cogs::RasterSourceParameters getParameters () const =0
 
virtual ErrorCode getErrorCode () const =0
 
uint64_t id () const
 

Protected Member Functions

void requestTile (Request *req) final
 
virtual bool createFetchTileUrl (std::string &url, TileId id)=0
 
- Protected Member Functions inherited from Cogs::Core::TerrainProvider::BaseRasterSource
bool init (const BaseConfig &conf, std::unique_ptr< ICache > &&icache)
 
void getConfig (BaseConfig &conf) const
 
void addTile (const Cogs::Memory::MemoryBuffer &contents, MimeType kind, Request *req, StringView debugLog)
 
void addTileFailure (Request *req, StringView debugLog)
 
virtual void requestTile (Request *req)=0
 

Protected Attributes

StringRef baseUrl = NoString
 
StringRef username = NoString
 
StringRef password = NoString
 
Cogs::Desktop::HTTPDataFetcher httpDataFetcher
 
- Protected Attributes inherited from Cogs::Core::TerrainProvider::BaseRasterSource
Contextcontext = nullptr
 
Extent extent
 
Tiling tiling
 
CoordSys coordsys
 
TextureFormat textureFormat = TextureFormat::Unknown
 
StringRef name = NoString
 
float noDataValue = std::numeric_limits<float>::quiet_NaN()
 
bool emitDebugLog = true
 

Additional Inherited Members

- Public Types inherited from Cogs::Core::TerrainProvider::IRasterSource
enum struct  ErrorCode {
  NoError , Done , FailedToOpenDiskCache , FailedToCreateDiskCache ,
  MismatchedDiskCache , NoHTTPService
}
 

Detailed Description

Definition at line 17 of file HTTPRasterSource.h.

Constructor & Destructor Documentation

◆ HTTPRasterSource()

Cogs::Core::TerrainProvider::HTTPRasterSource::HTTPRasterSource ( Context context)

Definition at line 19 of file HTTPRasterSource.cpp.

Member Function Documentation

◆ getConfig()

void Cogs::Core::TerrainProvider::HTTPRasterSource::getConfig ( HTTPConfig conf) const

Definition at line 47 of file HTTPRasterSource.cpp.

◆ init()

bool Cogs::Core::TerrainProvider::HTTPRasterSource::init ( const HTTPConfig conf,
std::unique_ptr< ICache > &&  icache 
)

Definition at line 25 of file HTTPRasterSource.cpp.

◆ requestTile()

void Cogs::Core::TerrainProvider::HTTPRasterSource::requestTile ( Request req)
finalprotectedvirtual

Member Data Documentation

◆ baseUrl

StringRef Cogs::Core::TerrainProvider::HTTPRasterSource::baseUrl = NoString
protected

Definition at line 25 of file HTTPRasterSource.h.

◆ httpDataFetcher

Cogs::Desktop::HTTPDataFetcher Cogs::Core::TerrainProvider::HTTPRasterSource::httpDataFetcher
protected

Definition at line 29 of file HTTPRasterSource.h.

◆ password

StringRef Cogs::Core::TerrainProvider::HTTPRasterSource::password = NoString
protected

Definition at line 27 of file HTTPRasterSource.h.

◆ username

StringRef Cogs::Core::TerrainProvider::HTTPRasterSource::username = NoString
protected

Definition at line 26 of file HTTPRasterSource.h.


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