Merge branch 'MSVC' of https://github.com/fsb4000/novacoin into fsb4000-MSVC
[novacoin.git] / src / leveldb / include / leveldb / dumpfile.h
1 // Copyright (c) 2014 The LevelDB Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. See the AUTHORS file for names of contributors.
4
5 #ifndef STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_
6 #define STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_
7
8 #include <string>
9 #include "leveldb/env.h"
10 #include "leveldb/status.h"
11
12 namespace leveldb {
13
14 // Dump the contents of the file named by fname in text format to
15 // *dst.  Makes a sequence of dst->Append() calls; each call is passed
16 // the newline-terminated text corresponding to a single item found
17 // in the file.
18 //
19 // Returns a non-OK result if fname does not name a leveldb storage
20 // file, or if the file cannot be read.
21 Status DumpFile(Env* env, const std::string& fname, WritableFile* dst);
22
23 }  // namespace leveldb
24
25 #endif  // STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_