#ifndef __SPOOLER_H__ #define __SPOOLER_H__ #include class Spooler { public: void enqueue(std::string recipient, std::string message); std::string dequeue(); std::string getFilename(); private: std::string findSpoolFilename(); void lock(); void unlock(); int fd; std::string filename; }; #endif // __SPOOLER_H__