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
external
ExternalEntry.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_EXTERNAL_ENTRY_H__
18
#define __BUSBOY_EXTERNAL_ENTRY_H__
19
20
#include "
ExternalAlgorithmData.h
"
21
#include "
ExternalContext.h
"
22
#include "
ExternalDataset.h
"
23
24
namespace
BUSBOY {
25
26
class
ExternalEntry
{
27
28
public
:
29
ExternalEntry
();
30
31
void
dumpDataset
(
ExternalDataset
* dataset);
32
33
ExternalDataset
*
cloneDataset
(
ExternalDataset
* dataset);
34
35
ExternalAlgorithmData
*
cloneAlgorithmData
(
ExternalAlgorithmData
* data);
36
37
ExternalAlgorithm
*
getAlgorithm
(
const
char
* algoName);
38
39
bool
executeAlgorithm
(
const
char
* algoName,
ExternalAlgorithmData
* extData,
ExternalContext
* context);
40
41
void
pushEnvironmentProperties
(
const
char
* setName,
const
char
* serializedProps);
42
46
void
testLogging
(
ExternalContext
* extContext,
const
char
* level,
const
char
* msg);
47
51
void
testProgressReporting
(
ExternalContext
* extContext,
float
percentDone,
const
char
* msg);
52
56
void
testFailureReporting
(
ExternalContext
* extContext,
const
char
* msg);
57
61
void
testSendMessage
(
ExternalContext
* extContext,
const
Message
& msg);
62
66
void
testAddDataFile
(
ExternalDataset
* extDataset,
ExternalDataFile
* extFile,
bool
stream);
67
71
const
char
*
testGetDataFileName
(
ExternalDataset
* extDataset,
const
char
* serializedKey);
72
76
ExternalDataFile
*
testFindDataFile
(
ExternalDataset
* extDataset,
const
char
* serializedKey);
77
81
bool
testIsQueryOnly
(
ExternalDataset
* extDataset);
82
87
ExternalDataFile
*
testReadFileAsRandomAccess
(
ExternalDataset
* extDataset,
const
char
* serializedKey);
88
92
void
testWriteFileAsRandomAccess
(
ExternalDataset
* extDataset,
ExternalDataFile
* extFile);
93
97
void
deleteLocalTempFiles
();
98
102
const
char
**
getLogFilePaths
();
103
104
~ExternalEntry
();
105
106
private
:
107
108
// prevent calling these
109
ExternalEntry
(
const
ExternalEntry
& entry);
110
ExternalEntry
& operator=(
const
ExternalEntry
& entry);
111
112
};
113
114
}
115
#endif
116
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.