00001 00011 #ifndef SERVICEMODE_H 00012 #define SERVICEMODE_H 00013 00014 #include "Context.h" 00015 00016 class ServiceMode { 00017 public: 00018 ServiceMode() : m_context(), m_task(0){} 00019 ServiceMode(const Context& context, int task) : m_context(context), m_task(task){} 00020 ~ServiceMode(){} 00021 ServiceMode& operator=(const ServiceMode& sm); 00022 const Context& context() const {return m_context;} 00023 const int& task() const {return m_task;} 00024 private: 00025 Context m_context; 00026 int m_task; 00027 }; 00028 00029 std::ostream& operator<<(std::ostream& os, const ServiceMode& sm); 00030 00031 #endif // SERVICEMODE_H