ARC SDK
|
This class is a wrapper around the DataPoint class. More...
#include <arc/data/DataHandle.h>
Public Member Functions | |
DataHandle (const URL &url, const UserConfig &usercfg) | |
Construct a new DataHandle. | |
~DataHandle () | |
Destructor. | |
DataPoint * | operator-> () |
Returns a pointer to a DataPoint object. | |
const DataPoint * | operator-> () const |
Returns a const pointer to a DataPoint object. | |
DataPoint & | operator* () |
Returns a reference to a DataPoint object. | |
const DataPoint & | operator* () const |
Returns a const reference to a DataPoint object. | |
bool | operator! () const |
Returns true if the DataHandle is not valid. | |
operator bool () const | |
Returns true if the DataHandle is valid. | |
Static Public Member Functions | |
static DataPoint * | GetPoint (const URL &url, const UserConfig &usercfg) |
Returns a pointer to new DataPoint object corresponding to URL. More... | |
This class is a wrapper around the DataPoint class.
It simplifies the construction, use and destruction of DataPoint objects and should be used instead of DataPoint classes directly. The appropriate DataPoint subclass is created automatically and stored internally in DataHandle. A DataHandle instance can be thought of as a pointer to the DataPoint instance and the DataPoint can be accessed through the usual dereference operators. A DataHandle cannot be copied.
This class is the main way to access remote data items and obtain information about them. To simply copy a whole file DataMover::Transfer() can be used. For partial file copy see the examples in ARC data library (libarcdata).
|
inlinestatic |