// Spectre 2 // // Douglas Thrift // // $Id$ #ifndef _Unmounter_hpp_ #define _Unmounter_hpp_ #include "Share.hpp" #ifdef MENES_PRAGMA_ONCE #pragma once #endif class Unmounter { private: const Share& share; public: Unmounter(const Share& share) : share(share) {} operator bool() { return share.mounted() && !share.mountable(); } void operator()(); }; #endif//_Unmounter_hpp_