Revision: | 431 |
Committed: | 2005-03-26T22:35:26-08:00 (20 years, 2 months ago) by douglas |
File size: | 383 byte(s) |
Log Message: | Grr! Why must this thing decided to ask for all the memory in existance at a certain point? |
# | User | Rev | Content |
---|---|---|---|
1 | douglas | 402 | // Spectre 2 |
2 | // | ||
3 | // Douglas Thrift | ||
4 | // | ||
5 | // $Id$ | ||
6 | |||
7 | #ifndef _Unmounter_hpp_ | ||
8 | #define _Unmounter_hpp_ | ||
9 | |||
10 | douglas | 428 | #include "Share.hpp" |
11 | douglas | 402 | |
12 | #ifdef MENES_PRAGMA_ONCE | ||
13 | #pragma once | ||
14 | #endif | ||
15 | |||
16 | douglas | 431 | class Unmounter |
17 | douglas | 402 | { |
18 | douglas | 431 | private: |
19 | const Share& share; | ||
20 | public: | ||
21 | Unmounter(const Share& share) : share(share) {} | ||
22 | operator bool() { return share.mounted() && !share.mountable(); } | ||
23 | void operator()(); | ||
24 | douglas | 402 | }; |
25 | |||
26 | douglas | 428 | #endif//_Unmounter_hpp_ |
Name | Value |
---|---|
svn:eol-style | native |
svn:keywords | Id |