osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{StreamingTile.cpp}::StampedProgressCallback Struct Reference

Inheritance diagram for anonymous_namespace{StreamingTile.cpp}::StampedProgressCallback:
Collaboration diagram for anonymous_namespace{StreamingTile.cpp}::StampedProgressCallback:

List of all members.

Public Member Functions

 StampedProgressCallback (TaskRequest *request, TaskService *service)
bool reportProgress (double current, double total)

Public Attributes

TaskRequest_request
TaskService_service

Detailed Description

Definition at line 51 of file StreamingTile.cpp.


Constructor & Destructor Documentation

anonymous_namespace{StreamingTile.cpp}::StampedProgressCallback::StampedProgressCallback ( TaskRequest request,
TaskService service 
) [inline]

Definition at line 54 of file StreamingTile.cpp.

                                                                           :
          _request(request),
          _service(service)
        {
        }

Member Function Documentation

bool anonymous_namespace{StreamingTile.cpp}::StampedProgressCallback::reportProgress ( double  current,
double  total 
) [inline]

Definition at line 61 of file StreamingTile.cpp.

        {
            //Check to see if we were marked cancelled on a previous check
            if (_canceled) return _canceled;

            _canceled = (_service->getStamp() - _request->getStamp() > 2);
            return _canceled;
        }

Member Data Documentation

TaskRequest* anonymous_namespace{StreamingTile.cpp}::StampedProgressCallback::_request

Definition at line 70 of file StreamingTile.cpp.

TaskService* anonymous_namespace{StreamingTile.cpp}::StampedProgressCallback::_service

Definition at line 71 of file StreamingTile.cpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines