fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Contrib / BackgroundLoader / OSGRequest.cpp
blobda145ef6c1565dfc4ea4d7fc9825886629727196
1 #include "OSGRequest.h"
2 #include <iostream>
4 OSG_USING_NAMESPACE
5 OSG_BEGIN_NAMESPACE
7 Request::Request()
8 : mCompleted(false)
9 , mPriority(100.0)
10 {;}
12 Request::~Request()
13 {;}
15 bool Request::isCompleted()
16 { return mCompleted; }
18 float Request::getPriority()
19 { return mPriority; }
21 void Request::setPriority(float val)
22 { mPriority = val; }
24 bool Request::comparePriority(RequestPtr lhs, RequestPtr rhs)
26 return (lhs->getPriority() < rhs->getPriority());
29 OSG_END_NAMESPACE