00001 #include "Context/ServiceMode.h" 00002 #include <iostream> 00003 00004 ServiceMode& ServiceMode::operator=(const ServiceMode& rhs) 00005 { 00006 if (this == &rhs) return *this; 00007 00008 m_context = rhs.m_context; 00009 m_task = rhs.m_task; 00010 00011 return *this; 00012 } 00013 00014 //_____________________________________________________________________________ 00015 std::ostream& operator<<(std::ostream& os, const ServiceMode& sm) 00016 { 00017 os << "{" 00018 << "Context: " << sm.context() 00019 << "Task: " << sm.task() 00020 << "}"; 00021 return os; 00022 }