Array.h
1 //%LICENSE////////////////////////////////////////////////////////////////
2 //
3 // 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 //
10 // 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 //
17 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // 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 //
29 //
30 //%/////////////////////////////////////////////////////////////////////////////
31 
32 #ifndef Pegasus_Array_h
33 #define Pegasus_Array_h
34 
40 #include <Pegasus/Common/Config.h>
41 #include <Pegasus/Common/Char16.h>
42 #include <Pegasus/Common/String.h>
43 
44 PEGASUS_NAMESPACE_BEGIN
45 
46 #include <Pegasus/Common/ArrayInter.h>
47 
48 #define PEGASUS_ARRAY_T Boolean
49 #include <Pegasus/Common/ArrayInter.h>
50 #undef PEGASUS_ARRAY_T
51 
52 #define PEGASUS_ARRAY_T Uint8
53 #include <Pegasus/Common/ArrayInter.h>
54 #undef PEGASUS_ARRAY_T
55 
56 #define PEGASUS_ARRAY_T Sint8
57 #include <Pegasus/Common/ArrayInter.h>
58 #undef PEGASUS_ARRAY_T
59 
60 #define PEGASUS_ARRAY_T Uint16
61 #include <Pegasus/Common/ArrayInter.h>
62 #undef PEGASUS_ARRAY_T
63 
64 #define PEGASUS_ARRAY_T Sint16
65 #include <Pegasus/Common/ArrayInter.h>
66 #undef PEGASUS_ARRAY_T
67 
68 #define PEGASUS_ARRAY_T Uint32
69 #include <Pegasus/Common/ArrayInter.h>
70 #undef PEGASUS_ARRAY_T
71 
72 #define PEGASUS_ARRAY_T Sint32
73 #include <Pegasus/Common/ArrayInter.h>
74 #undef PEGASUS_ARRAY_T
75 
76 #define PEGASUS_ARRAY_T Uint64
77 #include <Pegasus/Common/ArrayInter.h>
78 #undef PEGASUS_ARRAY_T
79 
80 #define PEGASUS_ARRAY_T Sint64
81 #include <Pegasus/Common/ArrayInter.h>
82 #undef PEGASUS_ARRAY_T
83 
84 #define PEGASUS_ARRAY_T Real32
85 #include <Pegasus/Common/ArrayInter.h>
86 #undef PEGASUS_ARRAY_T
87 
88 #define PEGASUS_ARRAY_T Real64
89 #include <Pegasus/Common/ArrayInter.h>
90 #undef PEGASUS_ARRAY_T
91 
92 #define PEGASUS_ARRAY_T Char16
93 #include <Pegasus/Common/ArrayInter.h>
94 #undef PEGASUS_ARRAY_T
95 
96 #define PEGASUS_ARRAY_T String
97 #include <Pegasus/Common/ArrayInter.h>
98 #undef PEGASUS_ARRAY_T
99 
100 #if defined(PEGASUS_USE_DEPRECATED_INTERFACES) || defined(PEGASUS_INTERNALONLY)
101 // Note: This explicit template instantiation is needed to support
102 // binary compatibility with a previous definition of the Sint8 type.
103 # define PEGASUS_ARRAY_T char
104 # include <Pegasus/Common/ArrayInter.h>
105 # undef PEGASUS_ARRAY_T
106 #endif
107 
108 PEGASUS_NAMESPACE_END
109 
110 #endif /* Pegasus_Array_h */