(file) Return to Array.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 karl  1.26 //%2006////////////////////////////////////////////////////////////////////////
  2 mike  1.9  //
  3 karl  1.16 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4            // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5            // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl  1.15 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.16 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl  1.17 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.26 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 mike  1.9  //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 kumpf 1.12 // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18 mike  1.9  // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20            // 
 21 kumpf 1.12 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 mike  1.9  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24 kumpf 1.12 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27 mike  1.9  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29            //
 30            //==============================================================================
 31            //
 32            //%/////////////////////////////////////////////////////////////////////////////
 33            
 34            #include "Array.h"
 35 mike  1.25 #include "ArrayRep.h"
 36 mike  1.9  
 37            PEGASUS_NAMESPACE_BEGIN
 38            
 39 mike  1.25 ArrayRepBase ArrayRepBase::_empty_rep;
 40            
 41 mike  1.9  #define PEGASUS_ARRAY_T Boolean
 42            #include <Pegasus/Common/ArrayImpl.h>
 43            #undef PEGASUS_ARRAY_T
 44            
 45            #define PEGASUS_ARRAY_T Uint8
 46            #include <Pegasus/Common/ArrayImpl.h>
 47            #undef PEGASUS_ARRAY_T
 48            
 49            #define PEGASUS_ARRAY_T Sint8
 50            #include <Pegasus/Common/ArrayImpl.h>
 51            #undef PEGASUS_ARRAY_T
 52            
 53            #define PEGASUS_ARRAY_T Uint16
 54            #include <Pegasus/Common/ArrayImpl.h>
 55            #undef PEGASUS_ARRAY_T
 56            
 57            #define PEGASUS_ARRAY_T Sint16
 58            #include <Pegasus/Common/ArrayImpl.h>
 59            #undef PEGASUS_ARRAY_T
 60            
 61            #define PEGASUS_ARRAY_T Uint32
 62 mike  1.9  #include <Pegasus/Common/ArrayImpl.h>
 63            #undef PEGASUS_ARRAY_T
 64            
 65            #define PEGASUS_ARRAY_T Sint32
 66            #include <Pegasus/Common/ArrayImpl.h>
 67            #undef PEGASUS_ARRAY_T
 68            
 69            #define PEGASUS_ARRAY_T Uint64
 70            #include <Pegasus/Common/ArrayImpl.h>
 71            #undef PEGASUS_ARRAY_T
 72            
 73            #define PEGASUS_ARRAY_T Sint64
 74            #include <Pegasus/Common/ArrayImpl.h>
 75            #undef PEGASUS_ARRAY_T
 76            
 77            #define PEGASUS_ARRAY_T Real32
 78            #include <Pegasus/Common/ArrayImpl.h>
 79            #undef PEGASUS_ARRAY_T
 80            
 81            #define PEGASUS_ARRAY_T Real64
 82            #include <Pegasus/Common/ArrayImpl.h>
 83 mike  1.9  #undef PEGASUS_ARRAY_T
 84            
 85            #define PEGASUS_ARRAY_T Char16
 86 kumpf 1.13 #include <Pegasus/Common/ArrayImpl.h>
 87            #undef PEGASUS_ARRAY_T
 88            
 89            #define PEGASUS_ARRAY_T String
 90 mike  1.9  #include <Pegasus/Common/ArrayImpl.h>
 91            #undef PEGASUS_ARRAY_T
 92            
 93 mike  1.24 // Explicitly instantiate the Array<char> template.  This is necessary to
 94 kumpf 1.22 // support binary compatibility with a previous definition of the Sint8 type.
 95 mike  1.24 // It also reduces code size because Array<char> is used in many places in
 96 kumpf 1.22 // the Pegasus implementation.
 97            #define PEGASUS_ARRAY_T char
 98            #include <Pegasus/Common/ArrayImpl.h>
 99            #undef PEGASUS_ARRAY_T
100            
101 mike  1.25 void ArrayThrowIndexOutOfBoundsException()
102            {
103                throw IndexOutOfBoundsException();
104            }
105            
106 mike  1.9  PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2