home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _6B4E674CC2B442D08C23126573D4813B < prev    next >
Encoding:
Text File  |  2003-05-07  |  8.0 KB  |  228 lines

  1. [
  2. '-----------------------------------------------------------
  3. ' C++ XML Project Template
  4. '
  5. ' Copyright (C) 2002-2003 Altova GmbH - The XMLSPY Company
  6. ' All rights reserved.
  7. '
  8. ' XMLSPY 5 Enterprise Edition generates C++ classes
  9. ' based on this template.
  10. ' Refer to the XMLSPY Documentation for further details.
  11. '
  12. ' http://www.altova.com/xmlspy
  13. '-----------------------------------------------------------
  14.  
  15. map type "boolean"                to "CSchemaBoolean"
  16.  
  17. map type "byte"                    to "CSchemaByte"
  18. map type "unsignedByte"            to "CSchemaUnsignedByte"
  19. map type "short"                to "CSchemaShort"
  20. map type "unsignedShort"        to "CSchemaUnsignedShort"
  21. map type "int"                    to "CSchemaInt"
  22. map type "unsignedInt"            to "CSchemaUnsignedInt"
  23. map type "long"                    to "CSchemaLong"
  24. map type "unsignedLong"            to "CSchemaUnsignedLong"
  25.  
  26. map type "integer"                to "CSchemaInteger"
  27. map type "nonPositiveInteger"    to "CSchemaNonPositiveInteger"
  28. map type "negativeInteger"        to "CSchemaNegativeInteger"
  29. map type "positiveInteger"        to "CSchemaPositiveInteger"
  30. map type "nonNegativeInteger"    to "CSchemaNonNegativeInteger"
  31. map type "decimal"                to "CSchemaDecimal"
  32.  
  33. map type "float"                to "CSchemaFloat"
  34. map type "double"                to "CSchemaDouble"
  35.  
  36. map type "duration"                to "CSchemaDuration"
  37. map type "gYear"                to "CSchemaYear"
  38. map type "gDay"                    to "CSchemaDay"
  39. map type "gMonth"                to "CSchemaMonth"
  40. map type "gYearMonth"            to "CSchemaYearMonth"
  41. map type "gMonthDay"            to "CSchemaMonthDay"
  42. map type "date"                    to "CSchemaDate"
  43. map type "time"                    to "CSchemaTime"
  44. map type "dateTime"                to "CSchemaDateTime"
  45.  
  46. map type "string"                to "CSchemaString"
  47. map type "hexBinary"            to "CSchemaHexBinary"
  48. map type "base64Binary"            to "CSchemaBase64Binary"
  49. map type "anyURI"                to "CSchemaAnyURI"
  50. map type "QName"                to "CSchemaQName"
  51. map type "NOTATION"                to "CSchemaNotation"
  52. map type "normalizedString"        to "CSchemaNormalizedString"
  53. map type "token"                to "CSchemaToken"
  54. map type "language"                to "CSchemaLanguage"
  55. map type "IDREF"                to "CSchemaIDRef"
  56. map type "ENTITY"                to "CSchemaEntity"
  57. map type "NMTOKEN"                to "CSchemaNMToken"
  58. map type "Name"                    to "CSchemaName"
  59. map type "NCName"                to "CSchemaNCName"
  60. map type "ID"                    to "CSchemaID"
  61. map type "IDREFS"                to "CSchemaIDRefs"
  62. map type "ENTITIES"                to "CSchemaEntities"
  63. map type "NMTOKENS"                to "CSchemaNMTokens"
  64.  
  65. map type "anySimpleType"        to "CSchemaString"
  66.  
  67. default "ValidFirstCharSet"            is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  68. default "ValidCharSet"                is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789"
  69. default "InvalidCharReplacement"    is "_"
  70. default "AnonTypePrefix"            is ""
  71. default "AnonTypeSuffix"            is "Type"
  72. default "ClassNamePrefix"            is "C"
  73. default "ClassNameSuffix"            is ""
  74. default "FallbackName"                is "Name"
  75.  
  76. reserve "asm"
  77. reserve "auto"
  78. reserve "break"
  79. reserve "case"
  80. reserve "char"
  81. reserve "class"
  82. reserve "const"
  83. reserve "continue"
  84. reserve "default"
  85. reserve "delete"
  86. reserve "do"
  87. reserve "double"
  88. reserve "else"
  89. reserve "enum"
  90. reserve "extern"
  91. reserve "float"
  92. reserve "for"
  93. reserve "friend"
  94. reserve "goto"
  95. reserve "if"
  96. reserve "inline"
  97. reserve "int"
  98. reserve "long"
  99. reserve "namespace"
  100. reserve "new"
  101. reserve "operator"
  102. reserve "private"
  103. reserve "protected"
  104. reserve "public"
  105. reserve "register"
  106. reserve "return"
  107. reserve "short"
  108. reserve "signed"
  109. reserve "sizeof"
  110. reserve "static"
  111. reserve "struct"
  112. reserve "switch"
  113. reserve "template"
  114. reserve "this"
  115. reserve "throw"
  116. reserve "typedef"
  117. reserve "union"
  118. reserve "unsigned"
  119. reserve "virtual"
  120. reserve "void"
  121. reserve "volatile"
  122. reserve "while"
  123.  
  124. $QualifiedBase = ""
  125. $QualifiedSimpleBase = ""
  126. $QualifiedType = ""
  127. $QualifiedName = ""
  128. $BuiltInType = ""
  129. $InstanceLength = ""
  130. $InstanceValue = ""
  131. $BasePath = ""
  132. $IsQualified = ""
  133.  
  134. '-----DSP generation variables-----
  135. $libtypename = ""
  136. $dllexp = ""
  137. $CPPOpt = ""
  138. $RSCOpt = ""
  139. $LINKOpt = ""
  140. $RTLOpt = ""
  141. if $libtype = 1 'Static lib
  142.     $libtypename = "Static Library"
  143. else 'DLL
  144.     $libtypename = "Dynamic-Link Library"
  145. endif
  146. if $mfc
  147.     if $libtype = 1 'Static lib
  148.         $MFCCode = 2 'Use MFC from static lib
  149.         $CPPOpt = " /D \"_LIB\" /D \"_AFXDLL\" /MD"
  150.     else 'DLL
  151.         $MFCCode = 6 'Use MFC from DLL
  152.         $CPPOpt = " /D \"_USRDLL\" /D \"_WINDLL\" /D \"_AFXDLL\" /MD"
  153.         $LINKOpt = " /subsystem:windows"
  154.     endif
  155.     $RSCOpt = " /d \"_AFXDLL\""
  156.     $RTLOpt = " /MD"
  157. else 'No MFC
  158.     $MFCCode = 0 'Do not use MFC
  159.     if $libtype = 1 'Static lib
  160.         $CPPOpt = " /D \"_LIB\" /MT"
  161.     else 'DLL
  162.         $CPPOpt = " /D \"_USRDLL\" /MT"
  163.         $LINKOpt = " kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"
  164.     endif
  165.     $RSCOpt = ""
  166.     $RTLOpt = " /MT"
  167. endif
  168.  
  169. '-----------------------------------------------------------
  170. ' Test Project
  171. '-----------------------------------------------------------
  172. $BasePath = $outputpath & "/" & $module & "Test/"
  173. if $vc6project
  174.     create $BasePath & $module & "Test.dsp"        : include "cpp/ModuleTest/ModuleTest.dsp"    : close
  175.     create $BasePath & $module & "Test.dsw"        : include "cpp/ModuleTest/ModuleTest.dsw"    : close
  176. endif
  177. create $BasePath & $module & "Test.cpp"        : include "cpp/ModuleTest/ModuleTest.cpp"        : close
  178. create $BasePath & $module & "Test.h"        : include "cpp/ModuleTest/ModuleTest.h"            : close
  179. create $BasePath & $module & "Test.rc"        : include "cpp/ModuleTest/ModuleTest.rc"        : close
  180. create $BasePath & "Resource.h"                : include "cpp/ModuleTest/Resource.h"            : close
  181. create $BasePath & "StdAfx.h"                : include "cpp/ModuleTest/StdAfx.h"                : close
  182. create $BasePath & "StdAfx.cpp"                : include "cpp/ModuleTest/StdAfx.cpp"            : close
  183.  
  184. '-----------------------------------------------------------
  185. ' Wrapper Library
  186. '-----------------------------------------------------------
  187. $BasePath = $outputpath & "/" & $module & "/"
  188. if $vc6project
  189.     create $BasePath & $module & ".dsp"        : include "cpp/Module/Module.dsp"        : close
  190.     create $BasePath & $module & ".dsw"        : include "cpp/Module/Module.dsw"        : close
  191. endif
  192. if $libtype = 2
  193.     create $BasePath & $module & ".def"        : include "cpp/Module/Module.def"        : close
  194. endif
  195. create $BasePath & $module & ".h"            : include "cpp/Module/Module.h"            : close
  196. create $BasePath & $module & ".cpp"            : include "cpp/Module/Module.cpp"        : close
  197. create $BasePath & "StdAfx.h"                : include "cpp/Module/StdAfx.h"            : close
  198. create $BasePath & "StdAfx.cpp"                : include "cpp/Module/StdAfx.cpp"        : close
  199.  
  200. '-----------------------------------------------------------
  201. ' Altova XML Library
  202. '-----------------------------------------------------------
  203. $BasePath = $outputpath & "/Altova/"
  204. if $vc6project
  205.     create $BasePath & "Altova.dsp"            : include "cpp/Altova/Altova.dsp"        : close
  206.     create $BasePath & "Altova.dsw"            : include "cpp/Altova/Altova.dsw"        : close
  207. endif
  208. if $libtype = 2
  209.     create $BasePath & "Altova.def"            : include "cpp/Altova/Altova.def"        : close
  210. endif
  211. if $domtype = 1
  212.     create $BasePath & "Doc.h"                : include "cpp/Altova/MSXML/Doc.h"        : close
  213.     create $BasePath & "Doc.cpp"            : include "cpp/Altova/MSXML/Doc.cpp"    : close
  214.     create $BasePath & "Node.h"                : include "cpp/Altova/MSXML/Node.h"        : close
  215.     create $BasePath & "Node.cpp"            : include "cpp/Altova/MSXML/Node.cpp"    : close
  216. else
  217.     create $BasePath & "Doc.h"                : include "cpp/Altova/Xerces/Doc.h"        : close
  218.     create $BasePath & "Doc.cpp"            : include "cpp/Altova/Xerces/Doc.cpp"    : close
  219.     create $BasePath & "Node.h"                : include "cpp/Altova/Xerces/Node.h"    : close
  220.     create $BasePath & "Node.cpp"            : include "cpp/Altova/Xerces/Node.cpp"    : close
  221. endif
  222. create $BasePath & "SchemaTypes.h"            : include "cpp/Altova/SchemaTypes.h"    : close
  223. create $BasePath & "SchemaTypes.cpp"        : include "cpp/Altova/SchemaTypes.cpp"    : close
  224. create $BasePath & "XmlException.h"            : include "cpp/Altova/XmlException.h"    : close
  225. create $BasePath & "XmlException.cpp"        : include "cpp/Altova/XmlException.cpp"    : close
  226. create $BasePath & "StdAfx.h"                : include "cpp/Altova/StdAfx.h"            : close
  227. create $BasePath & "StdAfx.cpp"                : include "cpp/Altova/StdAfx.cpp"        : close
  228. ]