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

  1 martin 1.28 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.29 //
  3 martin 1.28 // Licensed to The Open Group (TOG) under one or more contributor license
  4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             // this work for additional information regarding copyright ownership.
  6             // Each contributor licenses this file to you under the OpenPegasus Open
  7             // Source License; you may not use this file except in compliance with the
  8             // License.
  9 martin 1.29 //
 10 martin 1.28 // Permission is hereby granted, free of charge, to any person obtaining a
 11             // copy of this software and associated documentation files (the "Software"),
 12             // to deal in the Software without restriction, including without limitation
 13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             // and/or sell copies of the Software, and to permit persons to whom the
 15             // Software is furnished to do so, subject to the following conditions:
 16 martin 1.29 //
 17 martin 1.28 // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19 martin 1.29 //
 20 martin 1.28 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.29 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.28 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 martin 1.29 //
 28 martin 1.28 //////////////////////////////////////////////////////////////////////////
 29 mike   1.9  //
 30             //%/////////////////////////////////////////////////////////////////////////////
 31             
 32             #include "Array.h"
 33 mike   1.25 #include "ArrayRep.h"
 34 mike   1.9  
 35             PEGASUS_NAMESPACE_BEGIN
 36             
 37 mike   1.25 ArrayRepBase ArrayRepBase::_empty_rep;
 38             
 39 mike   1.9  #define PEGASUS_ARRAY_T Boolean
 40             #include <Pegasus/Common/ArrayImpl.h>
 41             #undef PEGASUS_ARRAY_T
 42             
 43             #define PEGASUS_ARRAY_T Uint8
 44             #include <Pegasus/Common/ArrayImpl.h>
 45             #undef PEGASUS_ARRAY_T
 46             
 47             #define PEGASUS_ARRAY_T Sint8
 48             #include <Pegasus/Common/ArrayImpl.h>
 49             #undef PEGASUS_ARRAY_T
 50             
 51             #define PEGASUS_ARRAY_T Uint16
 52             #include <Pegasus/Common/ArrayImpl.h>
 53             #undef PEGASUS_ARRAY_T
 54             
 55             #define PEGASUS_ARRAY_T Sint16
 56             #include <Pegasus/Common/ArrayImpl.h>
 57             #undef PEGASUS_ARRAY_T
 58             
 59             #define PEGASUS_ARRAY_T Uint32
 60 mike   1.9  #include <Pegasus/Common/ArrayImpl.h>
 61             #undef PEGASUS_ARRAY_T
 62             
 63             #define PEGASUS_ARRAY_T Sint32
 64             #include <Pegasus/Common/ArrayImpl.h>
 65             #undef PEGASUS_ARRAY_T
 66             
 67             #define PEGASUS_ARRAY_T Uint64
 68             #include <Pegasus/Common/ArrayImpl.h>
 69             #undef PEGASUS_ARRAY_T
 70             
 71             #define PEGASUS_ARRAY_T Sint64
 72             #include <Pegasus/Common/ArrayImpl.h>
 73             #undef PEGASUS_ARRAY_T
 74             
 75             #define PEGASUS_ARRAY_T Real32
 76             #include <Pegasus/Common/ArrayImpl.h>
 77             #undef PEGASUS_ARRAY_T
 78             
 79             #define PEGASUS_ARRAY_T Real64
 80             #include <Pegasus/Common/ArrayImpl.h>
 81 mike   1.9  #undef PEGASUS_ARRAY_T
 82             
 83             #define PEGASUS_ARRAY_T Char16
 84 kumpf  1.13 #include <Pegasus/Common/ArrayImpl.h>
 85             #undef PEGASUS_ARRAY_T
 86             
 87             #define PEGASUS_ARRAY_T String
 88 mike   1.9  #include <Pegasus/Common/ArrayImpl.h>
 89             #undef PEGASUS_ARRAY_T
 90             
 91 mike   1.24 // Explicitly instantiate the Array<char> template.  This is necessary to
 92 kumpf  1.22 // support binary compatibility with a previous definition of the Sint8 type.
 93 mike   1.24 // It also reduces code size because Array<char> is used in many places in
 94 kumpf  1.22 // the Pegasus implementation.
 95             #define PEGASUS_ARRAY_T char
 96             #include <Pegasus/Common/ArrayImpl.h>
 97             #undef PEGASUS_ARRAY_T
 98             
 99 mike   1.25 void ArrayThrowIndexOutOfBoundsException()
100             {
101                 throw IndexOutOfBoundsException();
102             }
103             
104 mike   1.9  PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2