omadmadapters/connmoadapter/src/AddBuffer.cpp
author hgs
Tue, 13 Jul 2010 03:48:30 +0530
changeset 45 0f9fc722d255
parent 44 deviceupdatesui/omadmadapters/connmoadapter/src/AddBuffer.cpp@137912d1a556
child 62 03849bd79877
permissions -rw-r--r--
201021_01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
 * ==============================================================================
hgs
parents:
diff changeset
     3
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     4
 * All rights reserved.
hgs
parents:
diff changeset
     5
 * This component and the accompanying materials are made available
hgs
parents:
diff changeset
     6
 * under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     7
 * which accompanies this distribution, and is available
hgs
parents:
diff changeset
     8
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     9
 *
hgs
parents:
diff changeset
    10
 * Initial Contributors:
hgs
parents:
diff changeset
    11
 * Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    12
 *
hgs
parents:
diff changeset
    13
 * Contributors:
hgs
parents:
diff changeset
    14
 * 
hgs
parents:
diff changeset
    15
 * Description:
hgs
parents:
diff changeset
    16
 * 
hgs
parents:
diff changeset
    17
 * ==============================================================================
hgs
parents:
diff changeset
    18
 */
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
#include <e32base.h>
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#include "AddBuffer.h"
hgs
parents:
diff changeset
    23
#include "Utils.h"
hgs
parents:
diff changeset
    24
#include "OstTraceDefinitions.h"
hgs
parents:
diff changeset
    25
#ifdef OST_TRACE_COMPILER_IN_USE
hgs
parents:
diff changeset
    26
#include "AddBufferTraces.h"
hgs
parents:
diff changeset
    27
#endif
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
_LIT8( KChildNodeWildCardPattern, "/*" );
hgs
parents:
diff changeset
    30
_LIT8( KNodeSeparator, "/" );
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
// ======== LOCAL FUNCTIONS =========
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
// ======== MEMBER FUNCTIONS ========
hgs
parents:
diff changeset
    35
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    36
// CConnMoNodeElement::CConnMoNodeElement()
hgs
parents:
diff changeset
    37
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    38
CConnMoNodeElement::CConnMoNodeElement() 
hgs
parents:
diff changeset
    39
    {
hgs
parents:
diff changeset
    40
    OstTraceFunctionEntry0( CCONNMONODEELEMENT_CCONNMONODEELEMENT_ENTRY );
hgs
parents:
diff changeset
    41
    
hgs
parents:
diff changeset
    42
    OstTraceFunctionExit0( CCONNMONODEELEMENT_CCONNMONODEELEMENT_EXIT );
hgs
parents:
diff changeset
    43
    }
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    46
// CAddBuffer::~CAddBuffer()
hgs
parents:
diff changeset
    47
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    48
CConnMoNodeElement::~CConnMoNodeElement()
hgs
parents:
diff changeset
    49
    {
hgs
parents:
diff changeset
    50
    OstTraceFunctionEntry0( CCONNMONODEELEMENT_DELETE_ENTRY );
hgs
parents:
diff changeset
    51
    
hgs
parents:
diff changeset
    52
    OstTraceFunctionExit0( CCONNMONODEELEMENT_DELETE_EXIT );
hgs
parents:
diff changeset
    53
    }
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
//-----------------------------------------------------------------------------
hgs
parents:
diff changeset
    56
// CAddBuffer* CAddBuffer::NewL( )
hgs
parents:
diff changeset
    57
//-----------------------------------------------------------------------------
hgs
parents:
diff changeset
    58
CAddBuffer* CAddBuffer::NewL()
hgs
parents:
diff changeset
    59
    {
hgs
parents:
diff changeset
    60
    OstTraceFunctionEntry0( CADDBUFFER_NEWL_ENTRY );
hgs
parents:
diff changeset
    61
    
hgs
parents:
diff changeset
    62
    CAddBuffer* self = new ( ELeave ) CAddBuffer();
hgs
parents:
diff changeset
    63
    CleanupStack::PushL( self );
hgs
parents:
diff changeset
    64
    
hgs
parents:
diff changeset
    65
    self->ConstructL();
hgs
parents:
diff changeset
    66
    
hgs
parents:
diff changeset
    67
    CleanupStack::Pop( self );
hgs
parents:
diff changeset
    68
hgs
parents:
diff changeset
    69
    OstTraceFunctionExit1( CADDBUFFER_NEWL_EXIT, ( TUint )( self ) );
hgs
parents:
diff changeset
    70
    return self;
hgs
parents:
diff changeset
    71
    }
hgs
parents:
diff changeset
    72
hgs
parents:
diff changeset
    73
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    74
// CAddBuffer::CAddBuffer()
hgs
parents:
diff changeset
    75
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    76
CAddBuffer::CAddBuffer() 
hgs
parents:
diff changeset
    77
    {
hgs
parents:
diff changeset
    78
    OstTraceFunctionEntry0( CADDBUFFER_CADDBUFFER_ENTRY );
hgs
parents:
diff changeset
    79
    
hgs
parents:
diff changeset
    80
    OstTraceFunctionExit0( CADDBUFFER_CADDBUFFER_EXIT );
hgs
parents:
diff changeset
    81
    }
hgs
parents:
diff changeset
    82
hgs
parents:
diff changeset
    83
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    84
// CAddBuffer::~CAddBuffer()
hgs
parents:
diff changeset
    85
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    86
CAddBuffer::~CAddBuffer()
hgs
parents:
diff changeset
    87
    {
hgs
parents:
diff changeset
    88
    OstTraceFunctionEntry0( CADDBUFFER_DELETE_ENTRY );
hgs
parents:
diff changeset
    89
    
hgs
parents:
diff changeset
    90
    iBuffer.ResetAndDestroy();
hgs
parents:
diff changeset
    91
    
hgs
parents:
diff changeset
    92
    OstTraceFunctionExit0( CADDBUFFER_DELETE_EXIT );
hgs
parents:
diff changeset
    93
    }
hgs
parents:
diff changeset
    94
hgs
parents:
diff changeset
    95
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    96
// CAddBuffer::CAddBuffer()
hgs
parents:
diff changeset
    97
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
    98
void CAddBuffer::ConstructL() 
hgs
parents:
diff changeset
    99
    {
hgs
parents:
diff changeset
   100
    OstTraceFunctionEntry0( CADDBUFFER_CONSTRUCTL_ENTRY );
hgs
parents:
diff changeset
   101
    
hgs
parents:
diff changeset
   102
    OstTraceFunctionExit0( CADDBUFFER_CONSTRUCTL_EXIT );
hgs
parents:
diff changeset
   103
    }
hgs
parents:
diff changeset
   104
hgs
parents:
diff changeset
   105
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   106
// CAddBuffer::AddNodeToBuffer()
hgs
parents:
diff changeset
   107
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   108
void CAddBuffer::AddNodeToBufferL( const TDesC8& aUri, 
hgs
parents:
diff changeset
   109
                                   const TDesC8& aParentLUID,
hgs
parents:
diff changeset
   110
                                   const TInt    aStatusRef )
hgs
parents:
diff changeset
   111
    {
hgs
parents:
diff changeset
   112
    OstTraceExt1( TRACE_NORMAL, CADDBUFFER_ADDNODETOBUFFERL_ENTRY, "ENTRY: CAddBuffer::AddNodeToBufferL;aUri=%s", aUri );
hgs
parents:
diff changeset
   113
    
hgs
parents:
diff changeset
   114
    CConnMoNodeElement* newNode = new (ELeave) CConnMoNodeElement();
hgs
parents:
diff changeset
   115
    
hgs
parents:
diff changeset
   116
    newNode->iUri.Copy( aUri );
hgs
parents:
diff changeset
   117
    newNode->iParentLUID.Copy( aParentLUID );
hgs
parents:
diff changeset
   118
    newNode->iStatusRef = aStatusRef;
hgs
parents:
diff changeset
   119
    newNode->iProcessed = EFalse;
hgs
parents:
diff changeset
   120
    newNode->iLeaf = EFalse;
hgs
parents:
diff changeset
   121
    
hgs
parents:
diff changeset
   122
    iBuffer.AppendL( newNode );
hgs
parents:
diff changeset
   123
    OstTrace0( TRACE_NORMAL, CADDBUFFER_ADDNODETOBUFFERL_EXIT, "EXIT: CAddBuffer::AddNodeToBufferL");
hgs
parents:
diff changeset
   124
    }
hgs
parents:
diff changeset
   125
hgs
parents:
diff changeset
   126
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   127
// CAddBuffer::AddNodeToBuffer()
hgs
parents:
diff changeset
   128
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   129
void CAddBuffer::AddNodeToBufferL( const TDesC8& aUri, 
hgs
parents:
diff changeset
   130
                                   const TDesC8& aLUID,
hgs
parents:
diff changeset
   131
                                   const TDesC8& aObject,
hgs
parents:
diff changeset
   132
                                   const TInt    aStatusRef )
hgs
parents:
diff changeset
   133
    {
hgs
parents:
diff changeset
   134
    OstTraceExt1( TRACE_NORMAL, CADDBUFFER_ADDNODETOBUFFERL_LEAF_ENTRY, "ENTRY: CAddBuffer::AddNodeToBufferL;aUri=%s", aUri );
hgs
parents:
diff changeset
   135
    
hgs
parents:
diff changeset
   136
    CConnMoNodeElement* newNode = new (ELeave) CConnMoNodeElement();
hgs
parents:
diff changeset
   137
    
hgs
parents:
diff changeset
   138
    newNode->iUri.Copy( aUri );
hgs
parents:
diff changeset
   139
    newNode->iParentLUID.Copy( aLUID );
hgs
parents:
diff changeset
   140
    newNode->iObject.Copy( aObject );
hgs
parents:
diff changeset
   141
    newNode->iStatusRef = aStatusRef;
hgs
parents:
diff changeset
   142
    newNode->iProcessed = EFalse;
hgs
parents:
diff changeset
   143
    newNode->iLeaf = ETrue;
hgs
parents:
diff changeset
   144
    
hgs
parents:
diff changeset
   145
    iBuffer.AppendL( newNode );
hgs
parents:
diff changeset
   146
    OstTrace0( TRACE_NORMAL, CADDBUFFER_ADDNODETOBUFFERL_LEAF_EXIT, "EXIT: CAddBuffer::AddNodeToBufferL");
hgs
parents:
diff changeset
   147
    }
hgs
parents:
diff changeset
   148
hgs
parents:
diff changeset
   149
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   150
// CAddBuffer::FindDynamicNode
hgs
parents:
diff changeset
   151
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   152
CConnMoNodeElement* CAddBuffer::FindDynamicNode( const TDesC8& aUri )
hgs
parents:
diff changeset
   153
    {
hgs
parents:
diff changeset
   154
    OstTraceExt1( TRACE_NORMAL, CADDBUFFER_FINDDYNAMICNODE_ENTRY, "ENTRY: CAddBuffer::FindDynamicNode;aUri=%s", aUri );
hgs
parents:
diff changeset
   155
hgs
parents:
diff changeset
   156
    CConnMoNodeElement* resultNode = NULL;
hgs
parents:
diff changeset
   157
hgs
parents:
diff changeset
   158
    for ( TInt i = 0; i < iBuffer.Count(); ++i )
hgs
parents:
diff changeset
   159
        {
hgs
parents:
diff changeset
   160
        if ( iBuffer[i]->iUri.Match(aUri) != KErrNotFound )
hgs
parents:
diff changeset
   161
            {
hgs
parents:
diff changeset
   162
            // 
hgs
parents:
diff changeset
   163
            TBuf8<KMaxFieldLength> dynamicNodeChildUri(aUri);
hgs
parents:
diff changeset
   164
            dynamicNodeChildUri.Append( KChildNodeWildCardPattern );
hgs
parents:
diff changeset
   165
            
hgs
parents:
diff changeset
   166
            if ( iBuffer[i]->iUri.Match( dynamicNodeChildUri ) == KErrNotFound )
hgs
parents:
diff changeset
   167
                {
hgs
parents:
diff changeset
   168
                // Correct dynamic node found.
hgs
parents:
diff changeset
   169
                OstTrace0( TRACE_NORMAL, 
hgs
parents:
diff changeset
   170
                           CADDBUFFER_FINDDYNAMICNODE_MATCH_FOUND, 
hgs
parents:
diff changeset
   171
                           "CAddBuffer::FindDynamicNode;Matching node found.");
hgs
parents:
diff changeset
   172
                resultNode = iBuffer[i];
hgs
parents:
diff changeset
   173
                break;
hgs
parents:
diff changeset
   174
                }
hgs
parents:
diff changeset
   175
            }
hgs
parents:
diff changeset
   176
        }
hgs
parents:
diff changeset
   177
	if ( resultNode != NULL )
hgs
parents:
diff changeset
   178
	    {
hgs
parents:
diff changeset
   179
        OstTraceExt1( TRACE_NORMAL, 
hgs
parents:
diff changeset
   180
                  CADDBUFFER_FINDDYNAMICNODE_EXIT, 
hgs
parents:
diff changeset
   181
                  "EXIT: CAddBuffer::FindDynamicNode;resultNode=%s", 
hgs
parents:
diff changeset
   182
                  resultNode->iUri );
hgs
parents:
diff changeset
   183
	    }
hgs
parents:
diff changeset
   184
    
hgs
parents:
diff changeset
   185
    return resultNode;
hgs
parents:
diff changeset
   186
    }
hgs
parents:
diff changeset
   187
    
hgs
parents:
diff changeset
   188
hgs
parents:
diff changeset
   189
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   190
// CAddBuffer::Find
hgs
parents:
diff changeset
   191
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   192
CConnMoNodeElement* CAddBuffer::CacheFind( const TDesC8& aUri )
hgs
parents:
diff changeset
   193
    {
hgs
parents:
diff changeset
   194
    OstTraceExt1( TRACE_NORMAL, CADDBUFFER_CACHEFIND_ENTRY, "ENTRY: CAddBuffer::CacheFind;aUri=%s", aUri );
hgs
parents:
diff changeset
   195
    
hgs
parents:
diff changeset
   196
    CConnMoNodeElement* resultNode = NULL;
hgs
parents:
diff changeset
   197
hgs
parents:
diff changeset
   198
    for ( TInt i = 0; i < iCache.Count(); ++i )
hgs
parents:
diff changeset
   199
        {
hgs
parents:
diff changeset
   200
        if ( iCache[i]->iUri.Match( aUri ) != KErrNotFound )
hgs
parents:
diff changeset
   201
            {
hgs
parents:
diff changeset
   202
            OstTrace0( TRACE_NORMAL, CADDBUFFER_CACHEFIND_MATCH_FOUND, "CAddBuffer::CacheFind; Matching URI found.");
hgs
parents:
diff changeset
   203
            resultNode = iCache[i];
hgs
parents:
diff changeset
   204
            
hgs
parents:
diff changeset
   205
            OstTraceExt1( TRACE_NORMAL, 
hgs
parents:
diff changeset
   206
                          CADDBUFFER_CACHEFIND_RESULT_NODE, 
hgs
parents:
diff changeset
   207
                          "CAddBuffer::CacheFind; resultNode=%s", 
hgs
parents:
diff changeset
   208
                          resultNode->iUri );
hgs
parents:
diff changeset
   209
            break;
hgs
parents:
diff changeset
   210
            }
hgs
parents:
diff changeset
   211
        }
hgs
parents:
diff changeset
   212
    
hgs
parents:
diff changeset
   213
    OstTrace0( TRACE_NORMAL, CADDBUFFER_CACHEFIND_EXIT, "EXIT: CAddBuffer::CacheFind");
hgs
parents:
diff changeset
   214
    return resultNode;
hgs
parents:
diff changeset
   215
    }
hgs
parents:
diff changeset
   216
hgs
parents:
diff changeset
   217
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   218
// CAddBuffer::FindDynamicNode
hgs
parents:
diff changeset
   219
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   220
CConnMoNodeElement* CAddBuffer::CacheFindDynamicNode( const TDesC8& aUri )
hgs
parents:
diff changeset
   221
    {
hgs
parents:
diff changeset
   222
    OstTraceExt1( TRACE_NORMAL, CADDBUFFER_CACHEFINDDYNAMICNODE_ENTRY, "ENTRY: CAddBuffer::CacheFindDynamicNode;aUri=%s", aUri );
hgs
parents:
diff changeset
   223
    
hgs
parents:
diff changeset
   224
    CConnMoNodeElement* resultNode = NULL;
hgs
parents:
diff changeset
   225
hgs
parents:
diff changeset
   226
    for ( TInt i = 0; i < iCache.Count(); ++i )
hgs
parents:
diff changeset
   227
        {
hgs
parents:
diff changeset
   228
        if ( iCache[i]->iUri.Match( aUri ) != KErrNotFound )
hgs
parents:
diff changeset
   229
            {
hgs
parents:
diff changeset
   230
            // 
hgs
parents:
diff changeset
   231
            TBuf8<KMaxFieldLength> dynamicNodeChildUri( aUri );
hgs
parents:
diff changeset
   232
            dynamicNodeChildUri.Append( KChildNodeWildCardPattern );
hgs
parents:
diff changeset
   233
            
hgs
parents:
diff changeset
   234
            if ( iCache[i]->iUri.Match(dynamicNodeChildUri) == KErrNotFound )
hgs
parents:
diff changeset
   235
                {
hgs
parents:
diff changeset
   236
                // Correct dynamic node found.
hgs
parents:
diff changeset
   237
                OstTrace0( TRACE_NORMAL, 
hgs
parents:
diff changeset
   238
                           CADDBUFFER_CACHEFINDDYNAMICNODE_MATCH_FOUND, 
hgs
parents:
diff changeset
   239
                           "CAddBuffer::CacheFindDynamicNode; Matching node found.");
hgs
parents:
diff changeset
   240
                          
hgs
parents:
diff changeset
   241
                resultNode = iCache[i];
hgs
parents:
diff changeset
   242
                break;
hgs
parents:
diff changeset
   243
                }
hgs
parents:
diff changeset
   244
            }
hgs
parents:
diff changeset
   245
        }
hgs
parents:
diff changeset
   246
    if ( resultNode != NULL )
hgs
parents:
diff changeset
   247
        {
hgs
parents:
diff changeset
   248
        OstTraceExt1( TRACE_NORMAL, 
hgs
parents:
diff changeset
   249
                  CADDBUFFER_CACHEFINDDYNAMICNODE_EXIT, 
hgs
parents:
diff changeset
   250
                  "EXIT: CAddBuffer::CacheFindDynamicNode;resultNode=%s", 
hgs
parents:
diff changeset
   251
                  resultNode->iUri );
hgs
parents:
diff changeset
   252
        }
hgs
parents:
diff changeset
   253
    
hgs
parents:
diff changeset
   254
    return resultNode;
hgs
parents:
diff changeset
   255
    }
hgs
parents:
diff changeset
   256
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   257
// CAddBuffer::AddNodeToBuffer()
hgs
parents:
diff changeset
   258
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   259
TInt CAddBuffer::GetGroup( const TDesC8& aRoot, RPointerArray<CConnMoNodeElement>* aGroup )
hgs
parents:
diff changeset
   260
    {
hgs
parents:
diff changeset
   261
    OstTraceExt1( TRACE_NORMAL, CADDBUFFER_GETGROUP_ENTRY, "ENTRY: CAddBuffer::GetGroup;aRoot=%s", aRoot );
hgs
parents:
diff changeset
   262
hgs
parents:
diff changeset
   263
    iCache.Reset();
hgs
parents:
diff changeset
   264
    TInt retval( KErrNotFound );
hgs
parents:
diff changeset
   265
    TBool first = ETrue;
hgs
parents:
diff changeset
   266
    TBuf8<KSmlMaxURISegLen> groupTag;
hgs
parents:
diff changeset
   267
    groupTag.Copy( aRoot );
hgs
parents:
diff changeset
   268
    groupTag.Append( KChildNodeWildCardPattern );
hgs
parents:
diff changeset
   269
hgs
parents:
diff changeset
   270
    for ( TInt i = 0; i < iBuffer.Count(); ++i )
hgs
parents:
diff changeset
   271
        {
hgs
parents:
diff changeset
   272
        if ( iBuffer[i]->iUri.Match( groupTag ) != KErrNotFound
hgs
parents:
diff changeset
   273
             && !iBuffer[i]->iProcessed )
hgs
parents:
diff changeset
   274
            {
hgs
parents:
diff changeset
   275
            if ( first )
hgs
parents:
diff changeset
   276
                {
hgs
parents:
diff changeset
   277
                groupTag.Insert( aRoot.Length(), KNodeSeparator );
hgs
parents:
diff changeset
   278
                groupTag.Insert( aRoot.Length() + 1, CUtils::GetSecondURISeg( iBuffer[i]->iUri ) );
hgs
parents:
diff changeset
   279
                first = EFalse;
hgs
parents:
diff changeset
   280
                retval = 0;
hgs
parents:
diff changeset
   281
                }
hgs
parents:
diff changeset
   282
            aGroup->Append(iBuffer[i]);
hgs
parents:
diff changeset
   283
            iCache.Append(iBuffer[i]);
hgs
parents:
diff changeset
   284
            retval++;
hgs
parents:
diff changeset
   285
            }
hgs
parents:
diff changeset
   286
        }
hgs
parents:
diff changeset
   287
    OstTrace1( TRACE_NORMAL, CADDBUFFER_GETGROUP_EXIT, "EXIT: CAddBuffer::GetGroup;retval=%d", retval );
hgs
parents:
diff changeset
   288
hgs
parents:
diff changeset
   289
    return retval;
hgs
parents:
diff changeset
   290
    }
hgs
parents:
diff changeset
   291
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   292
// CAddBuffer::~CAddBuffer()
hgs
parents:
diff changeset
   293
//------------------------------------------------------------------------------
hgs
parents:
diff changeset
   294
void CAddBuffer::Reset()
hgs
parents:
diff changeset
   295
    {
hgs
parents:
diff changeset
   296
    OstTraceFunctionEntry0( CADDBUFFER_Reset_ENTRY );
hgs
parents:
diff changeset
   297
    
hgs
parents:
diff changeset
   298
    iBuffer.ResetAndDestroy();
hgs
parents:
diff changeset
   299
    
hgs
parents:
diff changeset
   300
    OstTraceFunctionExit0( CADDBUFFER_Reset_EXIT );
hgs
parents:
diff changeset
   301
    }
hgs
parents:
diff changeset
   302