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

#include <ingestion_source.h>

Inheritance diagram for FileIngestionSource:
Collaboration diagram for FileIngestionSource:

Public Member Functions

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

Private Attributes

const std::string path_
 
int fd_
 
platform_stat64 stat_
 
bool stat_obtained_
 

Detailed Description

Definition at line 49 of file ingestion_source.h.

Constructor & Destructor Documentation

FileIngestionSource::FileIngestionSource ( const std::string &  path)
inlineexplicit

Definition at line 51 of file ingestion_source.h.

FileIngestionSource::~FileIngestionSource ( )
inline

Definition at line 53 of file ingestion_source.h.

Member Function Documentation

bool FileIngestionSource::Close ( )
inlinevirtual

Implements IngestionSource.

Definition at line 79 of file ingestion_source.h.

Here is the call graph for this function:

std::string FileIngestionSource::GetPath ( ) const
inlinevirtual

Implements IngestionSource.

Definition at line 55 of file ingestion_source.h.

bool FileIngestionSource::GetSize ( uint64_t *  size)
inlinevirtual

Implements IngestionSource.

Definition at line 91 of file ingestion_source.h.

Here is the call graph for this function:

virtual bool FileIngestionSource::IsRealFile ( ) const
inlinevirtual

Implements IngestionSource.

Definition at line 56 of file ingestion_source.h.

bool FileIngestionSource::Open ( )
inlinevirtual

Implements IngestionSource.

Definition at line 58 of file ingestion_source.h.

Here is the call graph for this function:

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

Implements IngestionSource.

Definition at line 69 of file ingestion_source.h.

Here is the call graph for this function:

Member Data Documentation

int FileIngestionSource::fd_
private

Definition at line 107 of file ingestion_source.h.

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

const std::string FileIngestionSource::path_
private

Definition at line 106 of file ingestion_source.h.

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

platform_stat64 FileIngestionSource::stat_
private

Definition at line 108 of file ingestion_source.h.

Referenced by GetSize().

bool FileIngestionSource::stat_obtained_
private

Definition at line 109 of file ingestion_source.h.

Referenced by GetSize().


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