00001 #include <phPlayerDevice.h> 00002 #include <phbase.h> 00003 00004 /* ------------------------------------------------------------------------ */ 00005 phPlayerDevice::phPlayerDevice() 00006 { 00007 phFUNCTION("phPlayerDevice::phPlayerDevice") 00008 int locked = 0; 00009 00010 phTHIS_LOOSE_LOCK(locked); 00011 00012 this->m_is_subscribed = 0; 00013 this->m_client = NULL; 00014 this->m_index = 0; 00015 this->m_source = NULL; 00016 this->setName("phPlayerDevice"); 00017 00018 phTHIS_LOOSE_UNLOCK(locked); 00019 } 00020 00021 /* ------------------------------------------------------------------------ */ 00022 phPlayerDevice::~phPlayerDevice() 00023 { 00024 phFUNCTION("phPlayerDevice::~phPlayerDevice") 00025 int locked = 0; 00026 00027 phTHIS_LOOSE_LOCK(locked); 00028 00029 this->m_is_subscribed = 0; 00030 this->m_client = NULL; 00031 this->m_index = 0; 00032 this->m_source = NULL; 00033 00034 phTHIS_LOOSE_UNLOCK(locked); 00035 } 00036 00037 /* ------------------------------------------------------------------------ */ 00038 int phPlayerDevice::isSubscribed() 00039 { 00040 return this->m_is_subscribed; 00041 } 00042 00043 /* ------------------------------------------------------------------------ */ 00044 phLiveObject *phPlayerDevice::getSource( ) 00045 { 00046 return this->m_source; 00047 }
Copyright (C) 2002 - 2007 |
Philip D.S. Thoren ( pthoren@users.sourceforge.net ) University Of Massachusetts at Lowell Robotics Lab |