⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pstaocomponent.cpp

📁 基于sipfoundy 公司开发的sipx协议API
💻 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// CONSTANTS// 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 ================================= */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -