ARC SDK
Public Member Functions
Arc::DataCallback Class Reference

Callbacks to be used when there is not enough space on the local filesystem. More...

#include <arc/data/DataCallback.h>

Public Member Functions

 DataCallback ()
 Construct a new DataCallback. More...
 
virtual ~DataCallback ()
 Empty destructor. More...
 
virtual bool cb (int)
 Callback with int passed as parameter. More...
 
virtual bool cb (unsigned int)
 Callback with unsigned int passed as parameter. More...
 
virtual bool cb (long long int)
 Callback with long long int passed as parameter. More...
 
virtual bool cb (unsigned long long int)
 Callback with unsigned long long int passed as parameter. More...
 

Detailed Description

Callbacks to be used when there is not enough space on the local filesystem.

If DataPoint::StartWriting() tries to pre-allocate disk space but finds that there is not enough to write the whole file, one of the 'cb' functions here will be called with the required space passed as a parameter. Users should define their own subclass of this class depending on how they wish to free up space. Each callback method should return true if the space was freed, false otherwise. This subclass should then be used as a parameter in StartWriting().

Constructor & Destructor Documentation

◆ DataCallback()

Arc::DataCallback::DataCallback ( )
inline

Construct a new DataCallback.

◆ ~DataCallback()

virtual Arc::DataCallback::~DataCallback ( )
inlinevirtual

Empty destructor.

Member Function Documentation

◆ cb() [1/4]

virtual bool Arc::DataCallback::cb ( int  )
inlinevirtual

Callback with int passed as parameter.

◆ cb() [2/4]

virtual bool Arc::DataCallback::cb ( unsigned  int)
inlinevirtual

Callback with unsigned int passed as parameter.

◆ cb() [3/4]

virtual bool Arc::DataCallback::cb ( long long  int)
inlinevirtual

Callback with long long int passed as parameter.

◆ cb() [4/4]

virtual bool Arc::DataCallback::cb ( unsigned long long  int)
inlinevirtual

Callback with unsigned long long int passed as parameter.


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