/usr/include/xercesc/internal/XTemplateSerializer.hpp is in libxerces-c-dev 3.2.0+debian-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: XTemplateSerializer.hpp 678409 2008-07-21 13:08:10Z borisk $
*/
#if !defined(XERCESC_INCLUDE_GUARD_XTEMPLATE_SERIALIZER_HPP)
#define XERCESC_INCLUDE_GUARD_XTEMPLATE_SERIALIZER_HPP
#include <xercesc/util/ValueVectorOf.hpp>
#include <xercesc/util/RefArrayVectorOf.hpp>
#include <xercesc/util/RefVectorOf.hpp>
#include <xercesc/util/RefHashTableOf.hpp>
#include <xercesc/util/RefHash2KeysTableOf.hpp>
#include <xercesc/util/RefHash3KeysIdPool.hpp>
#include <xercesc/util/NameIdPool.hpp>
#include <xercesc/framework/XMLNotationDecl.hpp>
#include <xercesc/framework/XMLRefInfo.hpp>
#include <xercesc/util/XMLNumber.hpp>
#include <xercesc/validators/common/ContentSpecNode.hpp>
#include <xercesc/validators/DTD/DTDAttDef.hpp>
#include <xercesc/validators/DTD/DTDElementDecl.hpp>
#include <xercesc/validators/DTD/DTDEntityDecl.hpp>
#include <xercesc/validators/schema/SchemaAttDef.hpp>
#include <xercesc/validators/schema/SchemaElementDecl.hpp>
#include <xercesc/validators/schema/XercesGroupInfo.hpp>
#include <xercesc/validators/schema/XercesAttGroupInfo.hpp>
#include <xercesc/validators/schema/SchemaGrammar.hpp>
#include <xercesc/validators/schema/identity/IC_Field.hpp>
#include <xercesc/validators/schema/identity/IdentityConstraint.hpp>
#include <xercesc/validators/schema/identity/XercesXPath.hpp>
#include <xercesc/framework/psvi/XSAnnotation.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class XMLUTIL_EXPORT XTemplateSerializer
{
public:
/**********************************************************
*
* ValueVectorOf
*
* SchemaElementDecl*
* unsigned int
*
***********************************************************/
static void storeObject(ValueVectorOf<SchemaElementDecl*>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(ValueVectorOf<SchemaElementDecl*>** tempObjToRead
, int initSize
, bool toCallDestructor
, XSerializeEngine& serEng);
static void storeObject(ValueVectorOf<unsigned int>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(ValueVectorOf<unsigned int>** tempObjToRead
, int initSize
, bool toCallDestructor
, XSerializeEngine& serEng);
/**********************************************************
*
* RefArrayVectorOf
*
* XMLCh
*
***********************************************************/
static void storeObject(RefArrayVectorOf<XMLCh>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefArrayVectorOf<XMLCh>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
/**********************************************************
*
* RefVectorOf
*
* SchemaAttDef
* SchemaElementDecl
* ContentSpecNode
* IC_Field
* DatatypeValidator
* IdentityConstraint
* XMLNumber
* XercesLocationPath
* XercesStep
*
***********************************************************/
static void storeObject(RefVectorOf<SchemaAttDef>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefVectorOf<SchemaAttDef>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefVectorOf<SchemaElementDecl>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefVectorOf<SchemaElementDecl>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefVectorOf<ContentSpecNode>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefVectorOf<ContentSpecNode>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefVectorOf<IC_Field>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefVectorOf<IC_Field>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefVectorOf<DatatypeValidator>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefVectorOf<DatatypeValidator>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefVectorOf<IdentityConstraint>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefVectorOf<IdentityConstraint>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefVectorOf<XMLNumber>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefVectorOf<XMLNumber>** tempObjToRead
, int initSize
, bool toAdopt
, XMLNumber::NumberType numType
, XSerializeEngine& serEng);
static void storeObject(RefVectorOf<XercesLocationPath>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefVectorOf<XercesLocationPath>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefVectorOf<XercesStep>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefVectorOf<XercesStep>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
/**********************************************************
*
* RefHashTableOf
*
* KVStringPair
* XMLAttDef
* DTDAttDef
* ComplexTypeInfo
* XercesGroupInfo
* XercesAttGroupInfo
* XMLRefInfo
* DatatypeValidator
* Grammar
* XSAnnotation
*
***********************************************************/
static void storeObject(RefHashTableOf<KVStringPair>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<KVStringPair>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHashTableOf<XMLAttDef>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<XMLAttDef>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHashTableOf<DTDAttDef>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<DTDAttDef>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHashTableOf<ComplexTypeInfo>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<ComplexTypeInfo>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHashTableOf<XercesGroupInfo>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<XercesGroupInfo>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHashTableOf<XercesAttGroupInfo>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<XercesAttGroupInfo>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHashTableOf<XMLRefInfo>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<XMLRefInfo>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHashTableOf<DatatypeValidator>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<DatatypeValidator>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHashTableOf<Grammar>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<Grammar>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHashTableOf<XSAnnotation, PtrHasher>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHashTableOf<XSAnnotation, PtrHasher>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
/**********************************************************
*
* RefHash2KeysTableOf
*
* SchemaAttDef
* ElemVector
*
***********************************************************/
static void storeObject(RefHash2KeysTableOf<SchemaAttDef>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHash2KeysTableOf<SchemaAttDef>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
static void storeObject(RefHash2KeysTableOf<ElemVector>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHash2KeysTableOf<ElemVector>** tempObjToRead
, int initSize
, bool toAdopt
, XSerializeEngine& serEng);
/**********************************************************
*
* RefHash3KeysIdPool
*
* SchemaElementDecl
*
***********************************************************/
static void storeObject(RefHash3KeysIdPool<SchemaElementDecl>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(RefHash3KeysIdPool<SchemaElementDecl>** tempObjToRead
, int initSize
, bool toAdopt
, int initSize2
, XSerializeEngine& serEng);
/**********************************************************
*
* NameIdPool
*
* DTDElementDecl
* DTDEntityDecl
* XMLNotationDecl
*
***********************************************************/
static void storeObject(NameIdPool<DTDElementDecl>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(NameIdPool<DTDElementDecl>** tempObjToRead
, int initSize
, int initSize2
, XSerializeEngine& serEng);
static void storeObject(NameIdPool<DTDEntityDecl>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(NameIdPool<DTDEntityDecl>** tempObjToRead
, int initSize
, int initSize2
, XSerializeEngine& serEng);
static void storeObject(NameIdPool<XMLNotationDecl>* const tempObjToWrite
, XSerializeEngine& serEng);
static void loadObject(NameIdPool<XMLNotationDecl>** tempObjToRead
, int initSize
, int initSize2
, XSerializeEngine& serEng);
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
~XTemplateSerializer();
XTemplateSerializer();
XTemplateSerializer(const XTemplateSerializer&);
XTemplateSerializer& operator=(const XTemplateSerializer&);
};
XERCES_CPP_NAMESPACE_END
#endif
|