1 |
// Syncify |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _Syncify_hpp_ |
8 |
#define _Syncify_hpp_ |
9 |
|
10 |
#include <menes/platform.hpp> |
11 |
|
12 |
#ifdef MENES_PRAGMA_ONCE |
13 |
#pragma once |
14 |
#endif |
15 |
|
16 |
#include <menes-api/console.hpp> |
17 |
#include <menes-api/files.hpp> |
18 |
#include <menes-api/path.hpp> |
19 |
#include <menes-ext/string.hpp> |
20 |
#include <menes-ios/helpers.hpp> |
21 |
|
22 |
#include "Matcher/Matcher.hpp" |
23 |
|
24 |
#include "Error.hpp" |
25 |
|
26 |
struct Syncify |
27 |
{ |
28 |
Syncify(const ext::String& local, const ext::String& remote, const ext::String& pattern); |
29 |
~Syncify(); |
30 |
static ext::String program; |
31 |
static bool debug; |
32 |
Matcher pattern; |
33 |
void syncify(const api::Path& local, const ext::String& remote); |
34 |
}; |
35 |
|
36 |
#endif//_Syncify_hpp_ |