File: storage_info_file.hh

package info (click to toggle)
zbackup 1.4.4-1~bpo8%2B1
  • links: PTS
  • area: main
  • in suites: jessie-backports
  • size: 600 kB
  • sloc: cpp: 5,447; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE

#ifndef STORAGE_INFO_FILE_HH_INCLUDED__
#define STORAGE_INFO_FILE_HH_INCLUDED__

#include <exception>
#include <string>

#include "encryption_key.hh"
#include "ex.hh"
#include "zbackup.pb.h"

namespace StorageInfoFile {

using std::string;

DEF_EX( Ex, "Storage info file exception", std::exception )
DEF_EX( exUnsupportedVersion, "Unsupported version of the storage info file format", Ex )

/// Saves the given StorageInfo data into the given file
void save( string const & fileName, StorageInfo const & );

/// Loads the given StorageInfo data from the given file
void load( string const & fileName, StorageInfo & );
}

#endif