//------------------------------------------------------------------------------ // Task master -- // (C) Piero Giubilato 2009, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "task_Master.h" // [Author] "Piero Giubilato" // [Version] "0.1" // [Modified by] "Piero Giubilato" // [Last revision] "04 Jan 2008" // [Language] "C++" // [Compiler] "Visual C++ 8.x 9.x" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "Application task master" // [Key documentation] // "Visual C++ Reference Help" // {Trace} //______________________________________________________________________________ // Overloading check #ifndef task_Master_H #define task_Master_H // Standard components #include #include // Application components #include "task_Object.h" //______________________________________________________________________________ class task_Master { private: // Singleton implementation static task_Master* inst_Handle; static int inst_Count; // Data int task_run_ID; task_Object* task_run_Hnd; std::vector task_List; protected: // Special member functions task_Master(); ~task_Master(); task_Master (const task_Master&) {}; task_Master& operator=(task_Master&) {}; public: // Singleton Initializer static task_Master* instance_Load(); static void instance_Destroy(); // Task functions void task_Run(std::string task_Name); void task_Master::task_Run(unsigned int task_ID); }; // Overloading check end #endif