home *** CD-ROM | disk | FTP | other *** search
- [
- '-----------------------------------------------------------
- ' C++ XML Project Template
- '
- ' Copyright (C) 2002-2003 Altova GmbH - The XMLSPY Company
- ' All rights reserved.
- '
- ' XMLSPY 5 Enterprise Edition generates C++ classes
- ' based on this template.
- ' Refer to the XMLSPY Documentation for further details.
- '
- ' http://www.altova.com/xmlspy
- '-----------------------------------------------------------
-
- map type "boolean" to "CSchemaBoolean"
-
- map type "byte" to "CSchemaByte"
- map type "unsignedByte" to "CSchemaUnsignedByte"
- map type "short" to "CSchemaShort"
- map type "unsignedShort" to "CSchemaUnsignedShort"
- map type "int" to "CSchemaInt"
- map type "unsignedInt" to "CSchemaUnsignedInt"
- map type "long" to "CSchemaLong"
- map type "unsignedLong" to "CSchemaUnsignedLong"
-
- map type "integer" to "CSchemaInteger"
- map type "nonPositiveInteger" to "CSchemaNonPositiveInteger"
- map type "negativeInteger" to "CSchemaNegativeInteger"
- map type "positiveInteger" to "CSchemaPositiveInteger"
- map type "nonNegativeInteger" to "CSchemaNonNegativeInteger"
- map type "decimal" to "CSchemaDecimal"
-
- map type "float" to "CSchemaFloat"
- map type "double" to "CSchemaDouble"
-
- map type "duration" to "CSchemaDuration"
- map type "gYear" to "CSchemaYear"
- map type "gDay" to "CSchemaDay"
- map type "gMonth" to "CSchemaMonth"
- map type "gYearMonth" to "CSchemaYearMonth"
- map type "gMonthDay" to "CSchemaMonthDay"
- map type "date" to "CSchemaDate"
- map type "time" to "CSchemaTime"
- map type "dateTime" to "CSchemaDateTime"
-
- map type "string" to "CSchemaString"
- map type "hexBinary" to "CSchemaHexBinary"
- map type "base64Binary" to "CSchemaBase64Binary"
- map type "anyURI" to "CSchemaAnyURI"
- map type "QName" to "CSchemaQName"
- map type "NOTATION" to "CSchemaNotation"
- map type "normalizedString" to "CSchemaNormalizedString"
- map type "token" to "CSchemaToken"
- map type "language" to "CSchemaLanguage"
- map type "IDREF" to "CSchemaIDRef"
- map type "ENTITY" to "CSchemaEntity"
- map type "NMTOKEN" to "CSchemaNMToken"
- map type "Name" to "CSchemaName"
- map type "NCName" to "CSchemaNCName"
- map type "ID" to "CSchemaID"
- map type "IDREFS" to "CSchemaIDRefs"
- map type "ENTITIES" to "CSchemaEntities"
- map type "NMTOKENS" to "CSchemaNMTokens"
-
- map type "anySimpleType" to "CSchemaString"
-
- default "ValidFirstCharSet" is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
- default "ValidCharSet" is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789"
- default "InvalidCharReplacement" is "_"
- default "AnonTypePrefix" is ""
- default "AnonTypeSuffix" is "Type"
- default "ClassNamePrefix" is "C"
- default "ClassNameSuffix" is ""
- default "FallbackName" is "Name"
-
- reserve "asm"
- reserve "auto"
- reserve "break"
- reserve "case"
- reserve "char"
- reserve "class"
- reserve "const"
- reserve "continue"
- reserve "default"
- reserve "delete"
- reserve "do"
- reserve "double"
- reserve "else"
- reserve "enum"
- reserve "extern"
- reserve "float"
- reserve "for"
- reserve "friend"
- reserve "goto"
- reserve "if"
- reserve "inline"
- reserve "int"
- reserve "long"
- reserve "namespace"
- reserve "new"
- reserve "operator"
- reserve "private"
- reserve "protected"
- reserve "public"
- reserve "register"
- reserve "return"
- reserve "short"
- reserve "signed"
- reserve "sizeof"
- reserve "static"
- reserve "struct"
- reserve "switch"
- reserve "template"
- reserve "this"
- reserve "throw"
- reserve "typedef"
- reserve "union"
- reserve "unsigned"
- reserve "virtual"
- reserve "void"
- reserve "volatile"
- reserve "while"
-
- $QualifiedBase = ""
- $QualifiedSimpleBase = ""
- $QualifiedType = ""
- $QualifiedName = ""
- $BuiltInType = ""
- $InstanceLength = ""
- $InstanceValue = ""
- $BasePath = ""
- $IsQualified = ""
-
- '-----DSP generation variables-----
- $libtypename = ""
- $dllexp = ""
- $CPPOpt = ""
- $RSCOpt = ""
- $LINKOpt = ""
- $RTLOpt = ""
- if $libtype = 1 'Static lib
- $libtypename = "Static Library"
- else 'DLL
- $libtypename = "Dynamic-Link Library"
- endif
- if $mfc
- if $libtype = 1 'Static lib
- $MFCCode = 2 'Use MFC from static lib
- $CPPOpt = " /D \"_LIB\" /D \"_AFXDLL\" /MD"
- else 'DLL
- $MFCCode = 6 'Use MFC from DLL
- $CPPOpt = " /D \"_USRDLL\" /D \"_WINDLL\" /D \"_AFXDLL\" /MD"
- $LINKOpt = " /subsystem:windows"
- endif
- $RSCOpt = " /d \"_AFXDLL\""
- $RTLOpt = " /MD"
- else 'No MFC
- $MFCCode = 0 'Do not use MFC
- if $libtype = 1 'Static lib
- $CPPOpt = " /D \"_LIB\" /MT"
- else 'DLL
- $CPPOpt = " /D \"_USRDLL\" /MT"
- $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"
- endif
- $RSCOpt = ""
- $RTLOpt = " /MT"
- endif
-
- '-----------------------------------------------------------
- ' Test Project
- '-----------------------------------------------------------
- $BasePath = $outputpath & "/" & $module & "Test/"
- if $vc6project
- create $BasePath & $module & "Test.dsp" : include "cpp/ModuleTest/ModuleTest.dsp" : close
- create $BasePath & $module & "Test.dsw" : include "cpp/ModuleTest/ModuleTest.dsw" : close
- endif
- create $BasePath & $module & "Test.cpp" : include "cpp/ModuleTest/ModuleTest.cpp" : close
- create $BasePath & $module & "Test.h" : include "cpp/ModuleTest/ModuleTest.h" : close
- create $BasePath & $module & "Test.rc" : include "cpp/ModuleTest/ModuleTest.rc" : close
- create $BasePath & "Resource.h" : include "cpp/ModuleTest/Resource.h" : close
- create $BasePath & "StdAfx.h" : include "cpp/ModuleTest/StdAfx.h" : close
- create $BasePath & "StdAfx.cpp" : include "cpp/ModuleTest/StdAfx.cpp" : close
-
- '-----------------------------------------------------------
- ' Wrapper Library
- '-----------------------------------------------------------
- $BasePath = $outputpath & "/" & $module & "/"
- if $vc6project
- create $BasePath & $module & ".dsp" : include "cpp/Module/Module.dsp" : close
- create $BasePath & $module & ".dsw" : include "cpp/Module/Module.dsw" : close
- endif
- if $libtype = 2
- create $BasePath & $module & ".def" : include "cpp/Module/Module.def" : close
- endif
- create $BasePath & $module & ".h" : include "cpp/Module/Module.h" : close
- create $BasePath & $module & ".cpp" : include "cpp/Module/Module.cpp" : close
- create $BasePath & "StdAfx.h" : include "cpp/Module/StdAfx.h" : close
- create $BasePath & "StdAfx.cpp" : include "cpp/Module/StdAfx.cpp" : close
-
- '-----------------------------------------------------------
- ' Altova XML Library
- '-----------------------------------------------------------
- $BasePath = $outputpath & "/Altova/"
- if $vc6project
- create $BasePath & "Altova.dsp" : include "cpp/Altova/Altova.dsp" : close
- create $BasePath & "Altova.dsw" : include "cpp/Altova/Altova.dsw" : close
- endif
- if $libtype = 2
- create $BasePath & "Altova.def" : include "cpp/Altova/Altova.def" : close
- endif
- if $domtype = 1
- create $BasePath & "Doc.h" : include "cpp/Altova/MSXML/Doc.h" : close
- create $BasePath & "Doc.cpp" : include "cpp/Altova/MSXML/Doc.cpp" : close
- create $BasePath & "Node.h" : include "cpp/Altova/MSXML/Node.h" : close
- create $BasePath & "Node.cpp" : include "cpp/Altova/MSXML/Node.cpp" : close
- else
- create $BasePath & "Doc.h" : include "cpp/Altova/Xerces/Doc.h" : close
- create $BasePath & "Doc.cpp" : include "cpp/Altova/Xerces/Doc.cpp" : close
- create $BasePath & "Node.h" : include "cpp/Altova/Xerces/Node.h" : close
- create $BasePath & "Node.cpp" : include "cpp/Altova/Xerces/Node.cpp" : close
- endif
- create $BasePath & "SchemaTypes.h" : include "cpp/Altova/SchemaTypes.h" : close
- create $BasePath & "SchemaTypes.cpp" : include "cpp/Altova/SchemaTypes.cpp" : close
- create $BasePath & "XmlException.h" : include "cpp/Altova/XmlException.h" : close
- create $BasePath & "XmlException.cpp" : include "cpp/Altova/XmlException.cpp" : close
- create $BasePath & "StdAfx.h" : include "cpp/Altova/StdAfx.h" : close
- create $BasePath & "StdAfx.cpp" : include "cpp/Altova/StdAfx.cpp" : close
- ]