1 |
douglas |
514 |
// Share |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#ifndef _Share_hpp_ |
8 |
|
|
#define _Share_hpp_ |
9 |
|
|
|
10 |
douglas |
553 |
#include <menes/c++/platform.hpp> |
11 |
douglas |
514 |
|
12 |
|
|
#ifdef MENES_PRAGMA_ONCE |
13 |
|
|
#pragma once |
14 |
|
|
#endif |
15 |
|
|
|
16 |
douglas |
549 |
#include <menes/api/socket.hpp> |
17 |
|
|
#include <menes/api/path.hpp> |
18 |
douglas |
514 |
|
19 |
douglas |
555 |
#include "Connector.hpp" |
20 |
|
|
|
21 |
douglas |
514 |
class Share : public ext::ReferenceCounted |
22 |
|
|
{ |
23 |
|
|
private: |
24 |
douglas |
555 |
mutable _R<Connector> connector; |
25 |
douglas |
514 |
public: |
26 |
douglas |
542 |
static api::Path shares; |
27 |
douglas |
534 |
api::Address host; |
28 |
|
|
cse::String share; |
29 |
douglas |
514 |
api::Path path; |
30 |
douglas |
555 |
Share(const _R<Connector>& connector, const api::Address& host, const cse::String& share); |
31 |
douglas |
534 |
~Share(); |
32 |
douglas |
514 |
}; |
33 |
|
|
|
34 |
|
|
#endif//_Share_hpp_ |