realtimenetprots/sipfw/SDP/src/CSdpCodecStringPool.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Name          : CSdpCodecStringPool.cpp
       
    15 // Part of       : SDP Codec
       
    16 // Version       : 1.0
       
    17 //
       
    18 
       
    19 
       
    20 
       
    21 #include <stringpool.h>
       
    22 #include "CSdpCodecStringPool.h"
       
    23 #include "sdpcodecstringconstants.h"
       
    24 #include "_sdpdefs.h"
       
    25 
       
    26 
       
    27 // ----------------------------------------------------------------------------
       
    28 // CSdpCodecStringPool::NewLC
       
    29 // ----------------------------------------------------------------------------
       
    30 //
       
    31 CSdpCodecStringPool* CSdpCodecStringPool::NewLC()
       
    32 	{
       
    33 	CSdpCodecStringPool* self = new(ELeave)CSdpCodecStringPool;
       
    34 	CleanupStack::PushL(self);
       
    35 	self->ConstructL();
       
    36 	return self;
       
    37 	}
       
    38 
       
    39 // ----------------------------------------------------------------------------
       
    40 // CSdpCodecStringPool::~CSdpCodecStringPool
       
    41 // ----------------------------------------------------------------------------
       
    42 //
       
    43 CSdpCodecStringPool::~CSdpCodecStringPool()
       
    44 	{
       
    45 	iPool.Close();
       
    46 	}
       
    47 
       
    48 // ----------------------------------------------------------------------------
       
    49 // CSdpCodecStringPool::StringPool
       
    50 // ----------------------------------------------------------------------------
       
    51 //
       
    52 RStringPool CSdpCodecStringPool::StringPool()
       
    53 	{
       
    54 	return iPool;
       
    55 	}
       
    56 
       
    57 // ----------------------------------------------------------------------------
       
    58 // CSdpCodecStringPool::StringTable
       
    59 // ----------------------------------------------------------------------------
       
    60 //
       
    61 const TStringTable& CSdpCodecStringPool::StringTable()
       
    62 	{
       
    63 	return SdpCodecStringConstants::Table;
       
    64 	}
       
    65 
       
    66 // ----------------------------------------------------------------------------
       
    67 // CSdpCodecStringPool::CSdpCodecStringPool
       
    68 // ----------------------------------------------------------------------------
       
    69 //
       
    70 CSdpCodecStringPool::CSdpCodecStringPool()
       
    71 	{
       
    72 	}
       
    73 	
       
    74 // ----------------------------------------------------------------------------
       
    75 // CSdpCodecStringPool::ConstructL
       
    76 // ----------------------------------------------------------------------------
       
    77 //
       
    78 void CSdpCodecStringPool::ConstructL()
       
    79 	{
       
    80 	iPool.OpenL(SdpCodecStringConstants::Table);
       
    81 	}
       
    82