bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
dmrpp::Chunk Class Reference

#include <Chunk.h>

Collaboration diagram for dmrpp::Chunk:
Collaboration graph

Public Member Functions

void add_tracking_query_param ()
 Modify this chunk's data URL so that it includes tracking info.
 
 Chunk ()=default
 Get an empty chunk.
 
 Chunk (const Chunk &h4bs)
 
 Chunk (std::shared_ptr< http::url > data_url, std::string order, const std::string &pia_vec, const std::vector< std::pair< unsigned long long, unsigned long long > > &lb_ol)
 
 Chunk (std::shared_ptr< http::url > data_url, std::string order, unsigned long long size, unsigned long long offset, bool lb, unsigned int lblock_index, const std::string &pia_str="")
 
 Chunk (std::shared_ptr< http::url > data_url, std::string order, unsigned long long size, unsigned long long offset, const std::string &pia_str="")
 Get a chunk initialized with values.
 
 Chunk (std::shared_ptr< http::url > data_url, std::string order, unsigned long long size, unsigned long long offset, const std::vector< unsigned long long > &pia_vec)
 Get a chunk initialized with values.
 
 Chunk (std::shared_ptr< http::url > data_url, std::string order, unsigned long long size, unsigned long long offset, const std::vector< unsigned long long > &pia_vec, bool is_multi_lb, unsigned int lb_index)
 
 Chunk (std::shared_ptr< http::url > data_url, std::string order, unsigned long long size, unsigned long long offset, unsigned int filter_mask, const std::vector< unsigned long long > &pia_vec)
 
 Chunk (std::string order, const std::string &pia_vec, const std::vector< std::pair< unsigned long long, unsigned long long > > &lb_ol)
 
 Chunk (std::string order, std::string fill_value, libdap::Type fv_type, unsigned long long chunk_size, std::vector< unsigned long long > pia)
 
 Chunk (std::string order, std::string fill_value, libdap::Type fv_type, unsigned long long chunk_size, std::vector< unsigned long long > pia, const std::vector< std::pair< libdap::Type, int > > &compound_udf_type_elms)
 
 Chunk (std::string order, std::string fill_value, libdap::Type fv_type, unsigned long long chunk_size, std::vector< unsigned long long > pia, unsigned int s_size)
 
 Chunk (std::string order, std::string fill_value, libdap::Type fv_type, unsigned long long size, unsigned long long offset, const std::string &pia_str="")
 
 Chunk (std::string order, unsigned long long size, unsigned long long offset, bool lb, unsigned int lblock_index, const std::string &pia_str="")
 
 Chunk (std::string order, unsigned long long size, unsigned long long offset, const std::string &pia_str="")
 Get a chunk initialized with values, the data URL will not be set.
 
 Chunk (std::string order, unsigned long long size, unsigned long long offset, const std::vector< unsigned long long > &pia_vec)
 
 Chunk (std::string order, unsigned long long size, unsigned long long offset, const std::vector< unsigned long long > &pia_vec, bool is_multi_lb, unsigned int lb_index)
 
 Chunk (std::string order, unsigned long long size, unsigned long long offset, unsigned int filter_mask, const std::vector< unsigned long long > &pia_vec)
 Get a chunk initialized with values, the data URl will not be set.
 
virtual void dump (std::ostream &strm) const
 
virtual void filter_chunk (const std::string &filters, unsigned long long chunk_size, unsigned long long elem_width)
 filter data in the chunk
 
virtual std::string get_byte_order ()
 
virtual unsigned long long get_bytes_read () const
 
virtual std::string get_curl_range_arg_string ()
 Returns a curl range argument. The libcurl requires a string argument for range-ge activitys, this method constructs one in the required syntax from the offset and size information for this byteStream.
 
virtual std::shared_ptr< http::urlget_data_url () const
 Get the data URL for this chunk.
 
virtual unsigned long long get_direct_io_offset () const
 
virtual std::string get_fill_value () const
 
virtual libdap::Type get_fill_value_type () const
 
virtual unsigned int get_filter_mask () const
 
virtual bool get_is_read ()
 
virtual bool get_linked_block () const
 
virtual unsigned int get_linked_block_index () const
 
virtual unsigned int get_multi_linked_block_index_in_dmrpp_file () const
 
virtual bool get_multi_linked_blocks () const
 
virtual unsigned long long get_offset () const
 
virtual const std::vector< unsigned long long > & get_position_in_array () const
 
virtual char * get_rbuf ()
 
virtual unsigned long long get_rbuf_size () const
 
virtual bool get_read_buffer_is_mine ()
 
virtual std::string get_response_content_type ()
 Get the response type of the last response.
 
virtual unsigned long long get_size () const
 
virtual bool get_uses_fill_value () const
 
virtual void load_fill_values ()
 Load the chunk with fill values - temporary implementation.
 
void obtain_multi_linked_offset_length (vector< std::pair< unsigned long long, unsigned long long > > &cur_chunk_lb_offset_length) const
 
Chunkoperator= (const Chunk &rhs)
 
virtual void read_chunk ()
 
virtual void read_chunk_dio ()
 
virtual void set_bytes_read (unsigned long long bytes_read)
 Set the size of this Chunk's data block.
 
void set_compound_udf_info (const std::vector< std::pair< libdap::Type, int > > &structure_type_element)
 
virtual void set_data_url (std::shared_ptr< http::url > data_url)
 Set the data url for this Chunk's data block.
 
virtual void set_direct_io_offset (unsigned long long dio_offset)
 
virtual void set_is_read (bool state)
 
void set_multi_linked_offset_length (const std::vector< std::pair< unsigned long long, unsigned long long > > &lb_offset_lengths)
 
void set_position_in_array (const std::string &pia)
 parse the chunk position string
 
void set_position_in_array (const std::vector< unsigned long long > &pia)
 Set the chunk's position in the Array.
 
virtual void set_rbuf_to_size ()
 Allocates the internal read buffer to be d_size bytes.
 
void set_read_buffer (char *buf, unsigned long long buf_size, unsigned long long bytes_read=0, bool assume_ownership=true)
 Set the target read buffer for this chunk.
 
void set_response_content_type (const std::string &ct)
 Set the response type of the last response.
 
virtual void set_size (unsigned long long storage_size)
 
virtual std::string to_string () const
 

Static Public Member Functions

static void parse_chunk_position_in_array_string (const std::string &pia, std::vector< unsigned long long > &pia_vect)
 

Protected Member Functions

void _duplicate (const Chunk &bs)
 

Friends

class ChunkTest
 
class DmrppCommonTest
 
class MockChunk
 

Detailed Description

This class is used to encapsulate the state and behavior needed for reading chunked data associated with a DAP variable. In particular it is based on the semantics of an hdf4:Chunk object, which is used to represent a chunk of data in a (potentially complex) HDF4/HDF5 file.

Definition at line 77 of file Chunk.h.

Constructor & Destructor Documentation

◆ Chunk() [1/18]

dmrpp::Chunk::Chunk ( )
default

Get an empty chunk.

Note
This constructor does not read the Query String marker from the BES context system. You must call Chunk::add_tracking_query_param() if you want that information added with Chunks created using this constructor.
See also
Chunk::add_tracking_query_param()

◆ Chunk() [2/18]

dmrpp::Chunk::Chunk ( std::shared_ptr< http::url > data_url,
std::string order,
unsigned long long size,
unsigned long long offset,
const std::string & pia_str = "" )
inline

Get a chunk initialized with values.

Parameters
data_urlWhere to read this chunk's data
orderThe data storage byte_order
sizeThe number of bytes to read
offsetRead
  • size bytes starting from this offset
pia_strA string that provides the logical position of this chunk in an Array. Has the syntax '[1,2,3,4]'.

Definition at line 189 of file Chunk.h.

◆ Chunk() [3/18]

dmrpp::Chunk::Chunk ( std::string order,
unsigned long long size,
unsigned long long offset,
const std::string & pia_str = "" )
inline

Get a chunk initialized with values, the data URL will not be set.

Parameters
data_urlWhere to read this chunk's data
orderThe data storage byte_order
sizeThe number of bytes to read
offsetRead
  • size bytes starting from this offset
pia_strA string that provides the logical position of this chunk in an Array. Has the syntax '[1,2,3,4]'.

Definition at line 210 of file Chunk.h.

◆ Chunk() [4/18]

dmrpp::Chunk::Chunk ( std::shared_ptr< http::url > data_url,
std::string order,
unsigned long long size,
unsigned long long offset,
bool lb,
unsigned int lblock_index,
const std::string & pia_str = "" )
inline

Definition at line 218 of file Chunk.h.

◆ Chunk() [5/18]

dmrpp::Chunk::Chunk ( std::string order,
unsigned long long size,
unsigned long long offset,
bool lb,
unsigned int lblock_index,
const std::string & pia_str = "" )
inline

Definition at line 229 of file Chunk.h.

◆ Chunk() [6/18]

dmrpp::Chunk::Chunk ( std::shared_ptr< http::url > data_url,
std::string order,
unsigned long long size,
unsigned long long offset,
const std::vector< unsigned long long > & pia_vec,
bool is_multi_lb,
unsigned int lb_index )
inline

Definition at line 240 of file Chunk.h.

◆ Chunk() [7/18]

dmrpp::Chunk::Chunk ( std::string order,
unsigned long long size,
unsigned long long offset,
const std::vector< unsigned long long > & pia_vec,
bool is_multi_lb,
unsigned int lb_index )
inline

Definition at line 250 of file Chunk.h.

◆ Chunk() [8/18]

dmrpp::Chunk::Chunk ( std::shared_ptr< http::url > data_url,
std::string order,
const std::string & pia_vec,
const std::vector< std::pair< unsigned long long, unsigned long long > > & lb_ol )
inline

Definition at line 261 of file Chunk.h.

◆ Chunk() [9/18]

dmrpp::Chunk::Chunk ( std::string order,
const std::string & pia_vec,
const std::vector< std::pair< unsigned long long, unsigned long long > > & lb_ol )
inline

Definition at line 274 of file Chunk.h.

◆ Chunk() [10/18]

dmrpp::Chunk::Chunk ( std::shared_ptr< http::url > data_url,
std::string order,
unsigned long long size,
unsigned long long offset,
const std::vector< unsigned long long > & pia_vec )
inline

Get a chunk initialized with values.

Parameters
data_urlWhere to read this chunk's data
orderThe data storage byte order
sizeThe number of bytes to read
offsetRead
  • size bytes starting from this offset
pia_vecThe logical position of this chunk in an Array; a std::vector of unsigned ints.

Definition at line 295 of file Chunk.h.

◆ Chunk() [11/18]

dmrpp::Chunk::Chunk ( std::shared_ptr< http::url > data_url,
std::string order,
unsigned long long size,
unsigned long long offset,
unsigned int filter_mask,
const std::vector< unsigned long long > & pia_vec )
inline

Definition at line 305 of file Chunk.h.

◆ Chunk() [12/18]

dmrpp::Chunk::Chunk ( std::string order,
unsigned long long size,
unsigned long long offset,
unsigned int filter_mask,
const std::vector< unsigned long long > & pia_vec )
inline

Get a chunk initialized with values, the data URl will not be set.

Parameters
data_urlWhere to read this chunk's data
orderThe data storage byte order
sizeThe number of bytes to read
offsetRead
  • size bytes starting from this offset
pia_vecThe logical position of this chunk in an Array; a std::vector of unsigned ints.

Definition at line 324 of file Chunk.h.

◆ Chunk() [13/18]

dmrpp::Chunk::Chunk ( std::string order,
unsigned long long size,
unsigned long long offset,
const std::vector< unsigned long long > & pia_vec )
inline

Definition at line 333 of file Chunk.h.

◆ Chunk() [14/18]

dmrpp::Chunk::Chunk ( std::string order,
std::string fill_value,
libdap::Type fv_type,
unsigned long long chunk_size,
std::vector< unsigned long long > pia )
inline

Definition at line 341 of file Chunk.h.

◆ Chunk() [15/18]

dmrpp::Chunk::Chunk ( std::string order,
std::string fill_value,
libdap::Type fv_type,
unsigned long long size,
unsigned long long offset,
const std::string & pia_str = "" )
inline

Definition at line 347 of file Chunk.h.

◆ Chunk() [16/18]

dmrpp::Chunk::Chunk ( std::string order,
std::string fill_value,
libdap::Type fv_type,
unsigned long long chunk_size,
std::vector< unsigned long long > pia,
const std::vector< std::pair< libdap::Type, int > > & compound_udf_type_elms )
inline

Definition at line 358 of file Chunk.h.

◆ Chunk() [17/18]

dmrpp::Chunk::Chunk ( std::string order,
std::string fill_value,
libdap::Type fv_type,
unsigned long long chunk_size,
std::vector< unsigned long long > pia,
unsigned int s_size )
inline

Definition at line 365 of file Chunk.h.

◆ Chunk() [18/18]

dmrpp::Chunk::Chunk ( const Chunk & h4bs)
inline

Definition at line 371 of file Chunk.h.

◆ ~Chunk()

virtual dmrpp::Chunk::~Chunk ( )
inlinevirtual

Definition at line 376 of file Chunk.h.

Member Function Documentation

◆ _duplicate()

void dmrpp::Chunk::_duplicate ( const Chunk & bs)
inlineprotected

Definition at line 148 of file Chunk.h.

◆ add_tracking_query_param()

void dmrpp::Chunk::add_tracking_query_param ( )

Modify this chunk's data URL so that it includes tracking info.

Add information to the Query string of a URL, intended primarily to aid in tracking the origin of requests when reading data from S3. The information added to the query string comes from a BES Context command sent to the BES by a client (e.g., the OLFS). The addition takes the form "tracking_context=<context value>". The method checks to see if the URL already has a query string, if not it adds one: "?tracking_context=<context value>" And if so it appends an additional parameter: "&tracking_context=<context value>"

Note
This is only added to data URLs that reference an S3 bucket.
This adds a significant cost to the run-time behavior of the DMR++ code and should only be used for testing and, even then, probably rarely since the performance of the server will be reduced significantly.

Cloudydap test hack where we tag the S3 URLs with a query string for the S3 log in order to track S3 requests. The tag is submitted as a BESContext with the request. Here we check to see if the request is for an AWS S3 object, if it is AND we have the magic BESContext "cloudydap" then we add a query parameter to the S3 URL for tracking purposes.

Should this be a function? FFS why? This is the ONLY place where this needs happen, as close to the curl call as possible and we can just turn it off down the road. - ndp 1/20/17 (EOD)

Well, it's a function now... ;-) jhrg 8/6/18

Definition at line 517 of file Chunk.cc.

◆ dump()

void dmrpp::Chunk::dump ( std::ostream & strm) const
virtual

unsigned long long d_size; unsigned long long d_offset; std::string d_md5; std::string d_uuid; std::string d_data_url; std::vector<unsigned int> d_chunk_position_in_array;

Definition at line 1323 of file Chunk.cc.

◆ filter_chunk()

void dmrpp::Chunk::filter_chunk ( const std::string & filters,
unsigned long long chunk_size,
unsigned long long elem_width )
virtual

filter data in the chunk

This method tracks if a chunk has already been decompressed, so, like read_chunk() it can be called for a chunk that has already been decompressed without error.

Parameters
filtersSpace separated list of filters
chunk_sizeThe expected chunk size, in elements; used to allocate storage
elem_widthThe number of bytes per element

Definition at line 650 of file Chunk.cc.

◆ get_byte_order()

virtual std::string dmrpp::Chunk::get_byte_order ( )
inlinevirtual
Returns
Get the chunk byte order

Definition at line 403 of file Chunk.h.

◆ get_bytes_read()

virtual unsigned long long dmrpp::Chunk::get_bytes_read ( ) const
inlinevirtual
Returns
Get the number of bytes read so far for this Chunk.

Definition at line 475 of file Chunk.h.

◆ get_curl_range_arg_string()

string dmrpp::Chunk::get_curl_range_arg_string ( )
virtual

Returns a curl range argument. The libcurl requires a string argument for range-ge activitys, this method constructs one in the required syntax from the offset and size information for this byteStream.

Definition at line 496 of file Chunk.cc.

◆ get_data_url()

std::shared_ptr< http::url > dmrpp::Chunk::get_data_url ( ) const
virtual

Get the data URL for this chunk.

Returns
Get the data url for this Chunk's data block

This method returns the data URL for this chunk. If the data URL is not set, it returns nullptr.

Note
The call to get_effective_url() will call EffectiveUrlCache::get_effective_url() which will call CurlUtils.cc get_redirect_url() which will call gru_mk_attempt() and will look for an HTTP 302 response and return the redirect URL in that response.
Returns
The data URL for this chunk

Definition at line 1357 of file Chunk.cc.

◆ get_direct_io_offset()

virtual unsigned long long dmrpp::Chunk::get_direct_io_offset ( ) const
inlinevirtual

Definition at line 422 of file Chunk.h.

◆ get_fill_value()

virtual std::string dmrpp::Chunk::get_fill_value ( ) const
inlinevirtual
Returns
Return the fill value as a string or "" if get_fill_value() is false

Definition at line 462 of file Chunk.h.

◆ get_fill_value_type()

virtual libdap::Type dmrpp::Chunk::get_fill_value_type ( ) const
inlinevirtual

Definition at line 459 of file Chunk.h.

◆ get_filter_mask()

virtual unsigned int dmrpp::Chunk::get_filter_mask ( ) const
inlinevirtual

Definition at line 431 of file Chunk.h.

◆ get_is_read()

virtual bool dmrpp::Chunk::get_is_read ( )
inlinevirtual

Definition at line 600 of file Chunk.h.

◆ get_linked_block()

virtual bool dmrpp::Chunk::get_linked_block ( ) const
inlinevirtual

Definition at line 436 of file Chunk.h.

◆ get_linked_block_index()

virtual unsigned int dmrpp::Chunk::get_linked_block_index ( ) const
inlinevirtual

Definition at line 441 of file Chunk.h.

◆ get_multi_linked_block_index_in_dmrpp_file()

virtual unsigned int dmrpp::Chunk::get_multi_linked_block_index_in_dmrpp_file ( ) const
inlinevirtual

Definition at line 451 of file Chunk.h.

◆ get_multi_linked_blocks()

virtual bool dmrpp::Chunk::get_multi_linked_blocks ( ) const
inlinevirtual

Definition at line 446 of file Chunk.h.

◆ get_offset()

virtual unsigned long long dmrpp::Chunk::get_offset ( ) const
inlinevirtual
Returns
Get the offset to this Chunk's data block

Definition at line 412 of file Chunk.h.

◆ get_position_in_array()

virtual const std::vector< unsigned long long > & dmrpp::Chunk::get_position_in_array ( ) const
inlinevirtual
Returns
The chunk's position in the array, as a vector of ints.

Definition at line 549 of file Chunk.h.

◆ get_rbuf()

virtual char * dmrpp::Chunk::get_rbuf ( )
inlinevirtual
Returns
A pointer to the memory buffer for this Chunk. The return value is NULL if no memory has been allocated.

Definition at line 515 of file Chunk.h.

◆ get_rbuf_size()

virtual unsigned long long dmrpp::Chunk::get_rbuf_size ( ) const
inlinevirtual
Returns
The size, in bytes, of the current read buffer for this Chunk.

Definition at line 543 of file Chunk.h.

◆ get_read_buffer_is_mine()

virtual bool dmrpp::Chunk::get_read_buffer_is_mine ( )
inlinevirtual

Definition at line 473 of file Chunk.h.

◆ get_response_content_type()

virtual std::string dmrpp::Chunk::get_response_content_type ( )
inlinevirtual

Get the response type of the last response.

Definition at line 397 of file Chunk.h.

◆ get_size()

virtual unsigned long long dmrpp::Chunk::get_size ( ) const
inlinevirtual
Returns
Get the size of this Chunk's data block on disk

Definition at line 406 of file Chunk.h.

◆ get_uses_fill_value()

virtual bool dmrpp::Chunk::get_uses_fill_value ( ) const
inlinevirtual
Returns
Return true if the the chunk uses 'fill value.'

Definition at line 458 of file Chunk.h.

◆ load_fill_values()

void dmrpp::Chunk::load_fill_values ( )
virtual

Load the chunk with fill values - temporary implementation.

Definition at line 1163 of file Chunk.cc.

◆ obtain_multi_linked_offset_length()

void dmrpp::Chunk::obtain_multi_linked_offset_length ( vector< std::pair< unsigned long long, unsigned long long > > & cur_chunk_lb_offset_length) const
inline

Definition at line 570 of file Chunk.h.

◆ operator=()

Chunk & dmrpp::Chunk::operator= ( const Chunk & rhs)
inline

I think this is broken. vector<Chunk> assignment fails in the read_atomic() method but 'assignment' using a reference works. This bug shows up in DmrppCommnon::read_atomic(). jhrg 4/10/18

Definition at line 387 of file Chunk.h.

◆ parse_chunk_position_in_array_string()

void dmrpp::Chunk::parse_chunk_position_in_array_string ( const std::string & pia,
std::vector< unsigned long long > & pia_vect )
static

Definition at line 433 of file Chunk.cc.

◆ read_chunk()

void dmrpp::Chunk::read_chunk ( )
virtual

This method is for reading one chunk after the other, using a CURL handle from the CurlHandlePool.

Parameters
deflate
shuffle
chunk_size
elem_width

Definition at line 1227 of file Chunk.cc.

◆ read_chunk_dio()

void dmrpp::Chunk::read_chunk_dio ( )
virtual

Definition at line 1271 of file Chunk.cc.

◆ set_bytes_read()

virtual void dmrpp::Chunk::set_bytes_read ( unsigned long long bytes_read)
inlinevirtual

Set the size of this Chunk's data block.

Parameters
sizeSize of the data in bytes

Definition at line 484 of file Chunk.h.

◆ set_compound_udf_info()

void dmrpp::Chunk::set_compound_udf_info ( const std::vector< std::pair< libdap::Type, int > > & structure_type_element)
inline

Definition at line 582 of file Chunk.h.

◆ set_data_url()

virtual void dmrpp::Chunk::set_data_url ( std::shared_ptr< http::url > data_url)
inlinevirtual

Set the data url for this Chunk's data block.

Definition at line 468 of file Chunk.h.

◆ set_direct_io_offset()

virtual void dmrpp::Chunk::set_direct_io_offset ( unsigned long long dio_offset)
inlinevirtual

Definition at line 427 of file Chunk.h.

◆ set_is_read()

virtual void dmrpp::Chunk::set_is_read ( bool state)
inlinevirtual

Definition at line 601 of file Chunk.h.

◆ set_multi_linked_offset_length()

void dmrpp::Chunk::set_multi_linked_offset_length ( const std::vector< std::pair< unsigned long long, unsigned long long > > & lb_offset_lengths)
inline

Definition at line 559 of file Chunk.h.

◆ set_position_in_array() [1/2]

void dmrpp::Chunk::set_position_in_array ( const std::string & pia)

parse the chunk position string

Extract information from the chunk position string and store as a vector of integers in the instance

Note
If we can change the DMR++ syntax to be less verbose and use a list of ints with whitespace as a separator, then the parsing code will be much simpler since istringstream is designed to deal with exactly that form of input.
Parameters
piaThe chunk position string. Syntax parsed: "[1,2,3,4]"

Definition at line 469 of file Chunk.cc.

◆ set_position_in_array() [2/2]

void dmrpp::Chunk::set_position_in_array ( const std::vector< unsigned long long > & pia)

Set the chunk's position in the Array.

Use this method when the vector<unsigned long long> is known.

See also
Chunk::set_position_in_array(const string &pia)
Parameters
piaA vector of unsigned ints.

Definition at line 481 of file Chunk.cc.

◆ set_rbuf_to_size()

virtual void dmrpp::Chunk::set_rbuf_to_size ( )
inlinevirtual

Allocates the internal read buffer to be d_size bytes.

The memory of the read buffer is managed internally by this method.

The class maintains an internal flag, d_read_buffer_is_mine, which controls if the currently held read buffer memory is released (via a call to 'delete[]') when an this method is invoked.

If the CHunk owns the read buffer, then calling this method will release any previously allocated read buffer memory and then allocate a new memory block. The bytes_read counter is reset to zero.

Definition at line 503 of file Chunk.h.

◆ set_read_buffer()

void dmrpp::Chunk::set_read_buffer ( char * buf,
unsigned long long buf_size,
unsigned long long bytes_read = 0,
bool assume_ownership = true )
inline

Set the target read buffer for this chunk.

Parameters
bufThe new buffer to install into the Chunk.
buf_sizeThe size of the passed buffer.
bytes_readThe number of bytes that have been read into buf. In practice this is the offset in buf at which new bytes should be added, (default: 0)
assume_ownershipIf true, then the memory pointed to by buf will be deleted (using delete[]) when the Chunk object's destructor is called. If false then the Chunk's destructor will not attempt to free/delete the memory pointed to by buf. (default: true)

Definition at line 531 of file Chunk.h.

◆ set_response_content_type()

void dmrpp::Chunk::set_response_content_type ( const std::string & ct)
inline

Set the response type of the last response.

Definition at line 400 of file Chunk.h.

◆ set_size()

virtual void dmrpp::Chunk::set_size ( unsigned long long storage_size)
inlinevirtual

Definition at line 417 of file Chunk.h.

◆ to_string()

string dmrpp::Chunk::to_string ( ) const
virtual

Definition at line 1339 of file Chunk.cc.

Friends And Related Symbol Documentation

◆ ChunkTest

friend class ChunkTest
friend

Definition at line 136 of file Chunk.h.

◆ DmrppCommonTest

friend class DmrppCommonTest
friend

Definition at line 137 of file Chunk.h.

◆ MockChunk

friend class MockChunk
friend

Definition at line 138 of file Chunk.h.


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