BusBoy
2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
api
dataset
SimpleDataFileSource.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_SIMPLE_DATA_FILE_SOURCE_H__
18
#define __BUSBOY_SIMPLE_DATA_FILE_SOURCE_H__
19
20
#include <string>
21
22
namespace
BUSBOY {
23
24
25
class
SimpleDataFileSourceImpl;
26
27
class
SimpleDataFileSource
:
public
DataFileSource
{
28
29
public
:
30
31
SimpleDataFileSource
(
char
* bytes,
size_t
size,
DataFile::Allocation
alloc =
DataFile::NEW
);
32
33
char
*
getFileBytes
()
const
;
34
35
size_t
getFileSize
()
const
;
36
37
size_t
read
(
char
* buf,
size_t
num);
38
39
size_t
skip
(
size_t
num);
40
41
void
release
();
42
43
bool
isReleased
()
const
;
44
45
~SimpleDataFileSource
();
46
47
private
:
48
49
SimpleDataFileSourceImpl
* m_impl;
50
51
// prevent calling these
52
SimpleDataFileSource
();
53
SimpleDataFileSource
(
const
SimpleDataFileSource
& src);
54
SimpleDataFileSource
& operator=(
const
SimpleDataFileSource
& src);
55
};
56
57
}
58
#endif
59
60
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.