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
LocalTempFile.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_LOCAL_TEMP_FILE_H__
18
#define __BUSBOY_LOCAL_TEMP_FILE_H__
19
20
#include <string>
21
//#include <memory>
22
//#include "DataFileSource.h"
23
//#include "DataFileSink.h"
24
25
namespace
BUSBOY {
26
27
class
LocalTempFileImpl;
28
32
class
LocalTempFile
{
33
34
public
:
35
36
LocalTempFile
(
37
const
std::string& dir,
38
const
std::string& name
39
);
40
41
std::string
getPath
()
const
;
42
43
void
deleteFile
();
44
45
void
copyFrom
(
DataFile
& dataFile);
46
47
DataFile
*
toDataFile
(
const
std::string& contentType);
48
49
~LocalTempFile
();
50
51
private
:
52
53
LocalTempFileImpl
* m_impl;
54
55
// prevent calling these
56
LocalTempFile
();
57
LocalTempFile
(
const
LocalTempFile
& file);
58
LocalTempFile
& operator=(
const
LocalTempFile
& file);
59
60
};
61
62
}
63
#endif
64
65
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.