# | Line 13 | Line 13 | |
---|---|---|
13 | #pragma once | |
14 | #endif | |
15 | ||
16 | < | struct Mounter |
16 | > | class Mounter |
17 | { | |
18 | < | static bool workable(const Share& share) { return !share.mounted() && share.mountable(); } |
19 | < | static int work(const Share& share); |
18 | > | private: |
19 | > | const Share& share; |
20 | > | public: |
21 | > | Mounter(const Share& share) : share(share) {} |
22 | > | operator bool() { return !share.mounted() && share.mountable(); } |
23 | > | void operator()(); |
24 | }; | |
25 | ||
26 | #endif//_Mounter_hpp_ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |