CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MemoryIngestionSource Class Reference

#include <ingestion_source.h>

Inheritance diagram for MemoryIngestionSource:
Collaboration diagram for MemoryIngestionSource:

Public Member Functions

 MemoryIngestionSource (const std::string &p, const unsigned char *d, unsigned s)
 
virtual ~MemoryIngestionSource ()
 
virtual std::string GetPath () const
 
virtual bool IsRealFile () const
 
virtual bool Open ()
 
virtual ssize_t Read (void *buffer, size_t nbyte)
 
virtual bool Close ()
 
virtual bool GetSize (uint64_t *size)
 
- Public Member Functions inherited from IngestionSource
virtual ~IngestionSource ()
 

Private Attributes

std::string path_
 
const unsigned char * data_
 
unsigned size_
 
unsigned pos_
 

Detailed Description

Wraps around existing memory without owning it.

Definition at line 116 of file ingestion_source.h.

Constructor & Destructor Documentation

MemoryIngestionSource::MemoryIngestionSource ( const std::string &  p,
const unsigned char *  d,
unsigned  s 
)
inline

Definition at line 118 of file ingestion_source.h.

virtual MemoryIngestionSource::~MemoryIngestionSource ( )
inlinevirtual

Definition at line 121 of file ingestion_source.h.

Member Function Documentation

virtual bool MemoryIngestionSource::Close ( )
inlinevirtual

Implements IngestionSource.

Definition at line 132 of file ingestion_source.h.

Referenced by StringIngestionSource::Close().

Here is the caller graph for this function:

virtual std::string MemoryIngestionSource::GetPath ( ) const
inlinevirtual

Implements IngestionSource.

Definition at line 122 of file ingestion_source.h.

Referenced by StringIngestionSource::GetPath().

Here is the caller graph for this function:

virtual bool MemoryIngestionSource::GetSize ( uint64_t *  size)
inlinevirtual

Implements IngestionSource.

Definition at line 133 of file ingestion_source.h.

Referenced by StringIngestionSource::GetSize().

Here is the caller graph for this function:

virtual bool MemoryIngestionSource::IsRealFile ( ) const
inlinevirtual

Implements IngestionSource.

Definition at line 123 of file ingestion_source.h.

virtual bool MemoryIngestionSource::Open ( )
inlinevirtual

Implements IngestionSource.

Definition at line 124 of file ingestion_source.h.

Referenced by StringIngestionSource::Open().

Here is the caller graph for this function:

virtual ssize_t MemoryIngestionSource::Read ( void *  buffer,
size_t  nbyte 
)
inlinevirtual

Implements IngestionSource.

Definition at line 125 of file ingestion_source.h.

Referenced by StringIngestionSource::Read().

Here is the caller graph for this function:

Member Data Documentation

const unsigned char* MemoryIngestionSource::data_
private

Definition at line 137 of file ingestion_source.h.

Referenced by Read().

std::string MemoryIngestionSource::path_
private

Definition at line 136 of file ingestion_source.h.

Referenced by GetPath().

unsigned MemoryIngestionSource::pos_
private

Definition at line 139 of file ingestion_source.h.

Referenced by Read().

unsigned MemoryIngestionSource::size_
private

Definition at line 138 of file ingestion_source.h.

Referenced by GetSize(), and Read().


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