IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
IBR-DTNSuite
Namespaces
Classes
Files
File List
daemon
ibrcommon
ibrdtn
tools
src
io
FATFile.cpp
FATFile.h
FatImageReader.cpp
FatImageReader.h
FileHash.cpp
FileHash.h
ObservedFile.cpp
ObservedFile.h
TarUtils.cpp
TarUtils.h
streaming
config.h
dtnconvert.cpp
dtninbox.cpp
dtnoutbox.cpp
dtnping.cpp
dtnrecv.cpp
dtnsend.cpp
dtnstream.cpp
dtntracepath.cpp
dtntrigger.cpp
dtntunnel.cpp
File Members
FileHash.h
Go to the documentation of this file.
1
/*
2
* FileHash.h
3
*
4
* Copyright (C) 2013 IBR, TU Braunschweig
5
*
6
* Written-by: David Goltzsche <goltzsch@ibr.cs.tu-bs.de>
7
* Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
8
*
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing, software
16
* distributed under the License is distributed on an "AS IS" BASIS,
17
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
* See the License for the specific language governing permissions and
19
* limitations under the License.
20
*
21
* Created on: Oct 17, 2013
22
*/
23
#ifndef FILEHASH_H_
24
#define FILEHASH_H_
25
26
#include <string>
27
28
namespace
io
29
{
30
class
FileHash
31
{
32
public
:
33
FileHash
();
34
FileHash
(
const
std::string &path,
const
std::string &hash);
35
virtual
~FileHash
();
36
37
const
std::string&
getHash
()
const
;
38
const
std::string&
getPath
()
const
;
39
40
bool
operator==
(
const
FileHash
& other)
const
;
41
bool
operator!=
(
const
FileHash
& other)
const
;
42
bool
operator<
(
const
FileHash
& other)
const
;
43
44
private
:
45
std::string _path;
46
std::string _hash;
47
};
48
}
49
50
#endif
/* FILEHASH_H_ */
tools
src
io
FileHash.h
Generated on Thu Mar 27 2014 09:26:21 for IBR-DTNSuite by
1.8.4