dmlite  0.6
Public Member Functions | Public Attributes | List of all members
dmlite::Chunk Class Reference

Represents a chunk of a file. More...

#include <pooldriver.h>

Collaboration diagram for dmlite::Chunk:
Collaboration graph
[legend]

Public Member Functions

 Chunk ()
 
 Chunk (const std::string &url, uint64_t offset, uint64_t size)
 
 Chunk (const std::string &str)
 Chunk from a serialized string. More...
 
bool operator== (const Chunk &) const
 
bool operator!= (const Chunk &) const
 
bool operator< (const Chunk &) const
 
bool operator> (const Chunk &) const
 
std::string toString (void) const
 

Public Attributes

uint64_t offset
 
uint64_t size
 
Url url
 
std::string url_alt
 Some implementations need to pass two urls per chunk, e.g. one for PUT and one for POST. More...
 
std::string chunkid
 Some implementations need to pass an ID for a chunk. More...
 

Detailed Description

Represents a chunk of a file.

Constructor & Destructor Documentation

◆ Chunk() [1/3]

dmlite::Chunk::Chunk ( )

◆ Chunk() [2/3]

dmlite::Chunk::Chunk ( const std::string &  url,
uint64_t  offset,
uint64_t  size 
)

◆ Chunk() [3/3]

dmlite::Chunk::Chunk ( const std::string &  str)
explicit

Chunk from a serialized string.

Member Function Documentation

◆ operator!=()

bool dmlite::Chunk::operator!= ( const Chunk ) const

◆ operator<()

bool dmlite::Chunk::operator< ( const Chunk ) const

◆ operator==()

bool dmlite::Chunk::operator== ( const Chunk ) const

◆ operator>()

bool dmlite::Chunk::operator> ( const Chunk ) const

◆ toString()

std::string dmlite::Chunk::toString ( void  ) const

Member Data Documentation

◆ chunkid

std::string dmlite::Chunk::chunkid

Some implementations need to pass an ID for a chunk.

◆ offset

uint64_t dmlite::Chunk::offset

◆ size

uint64_t dmlite::Chunk::size

◆ url

Url dmlite::Chunk::url

◆ url_alt

std::string dmlite::Chunk::url_alt

Some implementations need to pass two urls per chunk, e.g. one for PUT and one for POST.


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