Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::ProjectionService Class Reference

Projection Service. More...

Inheritance diagram for gem::ProjectionService:
Collaboration diagram for gem::ProjectionService:

Public Member Functions

 ProjectionService (const ProjectionService &)=delete
 ProjectionService (ProjectionService &&)=default
 Default move constructor noexcept is deduced.
ProjectionService & operator= (const ProjectionService &)=delete
 Default copy assignment operator.
ProjectionService & operator= (ProjectionService &&)=default
 Default move assignment operator.
int convert (const Projection &from, Projection &to, ProgressListener listener) noexcept
 Async returns the projection result from an input projection.

Detailed Description

Projection Service.

Implements share-read / write ApiType object over IProjection.

This behaves like a singleton, i.e. all instances are shared behind the same API interface

Member Function Documentation

◆ convert()

int gem::ProjectionService::convert ( const Projection & from,
Projection & to,
ProgressListener listener )
inlinenoexcept

Async returns the projection result from an input projection.

Parameters
[in]fromThe input projection that needs to be converted.
[out]toThe result Projection object.
[in]listenerOperation progress listener. Returns:
  • KNoError = Success
  • error::KInternalAbort = The result parsing failed or server internal error occurred
  • error::kNotSupported = The conversion between projections cannot be made
Returns
Error code if the operation couldn't start. If operation started successfully, the progress and completion notifications will come via the listener

◆ operator=() [1/2]

ProjectionService & gem::ProjectionService::operator= ( const ProjectionService & )
delete

Default copy assignment operator.

Replaces the contents of this object with a copy of another ProjectionService object.

Returns
A reference to the current object.

◆ operator=() [2/2]

ProjectionService & gem::ProjectionService::operator= ( ProjectionService && )
default

Default move assignment operator.

Moves the contents of another ProjectionService object into this one.

Returns
A reference to the current object.