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

#include <ingestion_source.h>

Inheritance diagram for StringIngestionSource:
Collaboration diagram for StringIngestionSource:

Public Member Functions

 StringIngestionSource (const std::string &data)
 
 StringIngestionSource (const std::string &data, const std::string &filename)
 
virtual ~StringIngestionSource ()
 
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 data_
 
MemoryIngestionSource source_
 

Detailed Description

Uses an std::string as data buffer

Definition at line 146 of file ingestion_source.h.

Constructor & Destructor Documentation

StringIngestionSource::StringIngestionSource ( const std::string &  data)
inlineexplicit

Definition at line 148 of file ingestion_source.h.

StringIngestionSource::StringIngestionSource ( const std::string &  data,
const std::string &  filename 
)
inline

Definition at line 152 of file ingestion_source.h.

virtual StringIngestionSource::~StringIngestionSource ( )
inlinevirtual

Definition at line 156 of file ingestion_source.h.

Member Function Documentation

virtual bool StringIngestionSource::Close ( )
inlinevirtual

Implements IngestionSource.

Definition at line 163 of file ingestion_source.h.

Here is the call graph for this function:

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

Implements IngestionSource.

Definition at line 157 of file ingestion_source.h.

Here is the call graph for this function:

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

Implements IngestionSource.

Definition at line 164 of file ingestion_source.h.

Here is the call graph for this function:

virtual bool StringIngestionSource::IsRealFile ( ) const
inlinevirtual

Implements IngestionSource.

Definition at line 158 of file ingestion_source.h.

virtual bool StringIngestionSource::Open ( )
inlinevirtual

Implements IngestionSource.

Definition at line 159 of file ingestion_source.h.

Here is the call graph for this function:

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

Implements IngestionSource.

Definition at line 160 of file ingestion_source.h.

Here is the call graph for this function:

Member Data Documentation

std::string StringIngestionSource::data_
private

Definition at line 167 of file ingestion_source.h.

MemoryIngestionSource StringIngestionSource::source_
private

Definition at line 168 of file ingestion_source.h.

Referenced by Close(), GetPath(), GetSize(), Open(), and Read().


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