?? pstaocomponent.cpp
字號:
//// Copyright (C) 2004, 2005 Pingtel Corp.// //// $$//////////////////////////////////////////////////////////////////////////////// SYSTEM INCLUDES#include <assert.h>// APPLICATION INCLUDES#include "ps/PsTaoComponent.h"#include <os/OsLock.h>// EXTERNAL FUNCTIONS// EXTERNAL VARIABLES// STATIC VARIABLE INITIALIZATIONS/* //////////////////////////// PUBLIC //////////////////////////////////// *//* ============================ CREATORS ================================== */// ConstructorPsTaoComponent::PsTaoComponent() :mMutex(OsMutex::Q_FIFO){}PsTaoComponent::PsTaoComponent(const UtlString& rComponentName, int componentType) :mMutex(OsMutex::Q_FIFO),mName(rComponentName),mType(componentType){}// Copy constructorPsTaoComponent::PsTaoComponent(const PsTaoComponent& rPsTaoComponent) :mMutex(OsMutex::Q_FIFO){}// DestructorPsTaoComponent::~PsTaoComponent(){ mName.remove(0);}/* ============================ MANIPULATORS ============================== */// Assignment operatorPsTaoComponent&PsTaoComponent::operator=(const PsTaoComponent& rhs){ if (this == &rhs) // handle the assignment to self case return *this; return *this;}/* ============================ ACCESSORS ================================= */void PsTaoComponent::getName(UtlString& rName){ rName = mName;}int PsTaoComponent::getType(void){ return mType;}/* ============================ INQUIRY =================================== *//* //////////////////////////// PROTECTED ///////////////////////////////// */OsMutex* PsTaoComponent::getMutex(void){ return &mMutex;}/* //////////////////////////// PRIVATE /////////////////////////////////// *//* ============================ FUNCTIONS ================================= */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -