xmlreaderimpl/stx_goodies_xmlsuite_xmlreaderimpl.st
changeset 300 b6d834208d33
parent 296 ea3dbc023c80
equal deleted inserted replaced
299:f06c5eba524d 300:b6d834208d33
     1 "{ Package: 'stx:goodies/xmlsuite/xmlreaderimpl' }"
     1 "{ Package: 'stx:goodies/xmlsuite/xmlreaderimpl' }"
       
     2 
       
     3 "{ NameSpace: Smalltalk }"
     2 
     4 
     3 LibraryDefinition subclass:#stx_goodies_xmlsuite_xmlreaderimpl
     5 LibraryDefinition subclass:#stx_goodies_xmlsuite_xmlreaderimpl
     4 	instanceVariableNames:''
     6 	instanceVariableNames:''
     5 	classVariableNames:''
     7 	classVariableNames:''
     6 	poolDictionaries:''
     8 	poolDictionaries:''
     8 !
    10 !
     9 
    11 
    10 
    12 
    11 !stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description'!
    13 !stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description'!
    12 
    14 
    13 mandatoryPreRequisites
    15 excludedFromPreRequisites
    14     "list all required mandatory packages.
    16     "list packages which are to be explicitely excluded from the automatic constructed
    15      Packages are mandatory, if they contain superclasses of the package's classes
    17      prerequisites list. If empty, everything that is found along the inheritance of any of
    16      or classes which are extended by this package.
    18      my classes is considered to be a prerequisite package."
    17      This list can be maintained manually or (better) generated and
       
    18      updated by scanning the superclass hierarchies
       
    19      (the browser has a menu function for that)
       
    20      However, often too much is found, and you may want to explicitely
       
    21      exclude individual packages in the #excludedFromPreRequisites method."
       
    22 
    19 
    23     ^ #(
    20     ^ #(
    24         #'stx:goodies/xmlsuite/core'    "XMLv2::XMLReader - superclass of XMLv2::ExpatXMLReader "
    21     )
    25         #'stx:libbasic'    "Autoload - superclass of XMLv2::VWSAXBuilder "
    22 !
       
    23 
       
    24 mandatoryPreRequisites
       
    25     "list packages which are mandatory as a prerequisite.
       
    26      This are packages containing superclasses of my classes and classes which
       
    27      are extended by myself.
       
    28      They are mandatory, because we need these packages as a prerequisite for loading and compiling.
       
    29      This method is generated automatically,
       
    30      by searching along the inheritance chain of all of my classes."
       
    31 
       
    32     ^ #(
       
    33         #'stx:goodies/xml/vw'    "XML::NodeBuilder - superclass of XMLv2::VWSAXBuilder"
       
    34         #'stx:goodies/xmlsuite/core'    "XMLv2::XMLReader - superclass of XMLv2::VWXMLReader"
       
    35         #'stx:libbasic'    "LibraryDefinition - superclass of stx_goodies_xmlsuite_xmlreaderimpl"
    26     )
    36     )
    27 !
    37 !
    28 
    38 
    29 postLoadAction
    39 postLoadAction
    30 	"
    40 	"
    58 			add: '/usr/lib/libexpat.so';
    68 			add: '/usr/lib/libexpat.so';
    59 			yourself) asArray
    69 			yourself) asArray
    60 	"
    70 	"
    61 !
    71 !
    62 
    72 
    63 preRequisites
    73 referencedPreRequisites
    64     "list all required packages.
    74     "list packages which are a prerequisite, because they contain
    65      This list can be maintained manually or (better) generated and
    75      classes which are referenced by my classes.
    66      updated by scanning the superclass hierarchies and looking for
    76      We do not need these packages as a prerequisite for compiling or loading,
    67      global variable accesses. (the browser has a menu function for that)
    77      however, a class from it may be referenced during execution and having it
    68      Howevery, often too much is found, and you may want to explicitely
    78      unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
    69      exclude individual packages in the #excludedFromPrerequisites method."
    79      includes explicit checks for the package being present.
       
    80      This method is generated automatically,
       
    81      by searching all classes (and their packages) which are referenced by my classes."
    70 
    82 
    71     ^ #(
    83     ^ #(
    72         #'stx:goodies/xml/vw'    "XML::XMLParser - superclass of XMLv2::VWXMLReader::XMLParser "
       
    73         #'stx:goodies/xmlsuite/core'    "XMLv2::XMLReader - superclass of XMLv2::ExpatXMLReader "
       
    74         #'stx:libbasic'    "Object - superclass of XMLv2::VWXMLReader "
       
    75         #'stx:libcomp'
       
    76     )
    84     )
    77 !
    85 !
    78 
    86 
    79 referencedPreRequisites
    87 subProjects
    80     "list all packages containing classes referenced by the packages's members.
    88     "list packages which are known as subprojects.
    81      This list can be maintained manually or (better) generated and
    89      The generated makefile will enter those and make there as well.
    82      updated by looking for global variable accesses
    90      However: they are not forced to be loaded when a package is loaded;
    83      (the browser has a menu function for that)
    91      for those, redefine requiredPrerequisites."
    84      However, often too much is found, and you may want to explicitely
       
    85      exclude individual packages in the #excludedFromPreRequisites method."
       
    86 
    92 
    87     ^ #(
    93     ^ #(
    88     )
    94     )
    89 ! !
       
    90 
       
    91 !stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - compilation'!
       
    92 
       
    93 additionalLinkLibraries_bc_dot_mak
       
    94     "allows for additional static libraries to be added to the bc.mak file.
       
    95      Subclasses may redefine this"
       
    96 
       
    97     "backward compatibilty with old projects"
       
    98 
       
    99     ^'"support/expat-2.0.1/bcb5/release/libexpats_mtd.lib"'
       
   100 
       
   101     "Created: / 09-01-2010 / 14:01:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   102 !
       
   103 
       
   104 additionalLinkLibraries_make_dot_proto
       
   105     "allows for additional static libraries to be added to the make.proto file."
       
   106 
       
   107     ^ 'support/expat-2.0.1/build/lib/libexpat.a'
       
   108 
       
   109     "Created: / 22-08-2006 / 23:53:33 / cg"
       
   110 !
       
   111 
       
   112 additionalRules_bc_dot_mak
       
   113     "obsolete - kept for compatibility with old project files"
       
   114     
       
   115     ^ '
       
   116 support/expat-2.0.1/bcb5/release/libexpats_mtd.lib:
       
   117         cd support/expat-2.0.1/bcb5
       
   118         $(MAKE)
       
   119         cd ..\..\..
       
   120 '
       
   121 
       
   122     "Created: / 09-01-2010 / 14:03:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   123     "Modified: / 22-04-2013 / 16:38:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   124 !
       
   125 
       
   126 additionalRules_make_dot_proto
       
   127     "allows for additional rules to be added to the make.proto file."
       
   128 
       
   129     ^ '
       
   130 support/expat-2.0.1/build/lib/libexpat.a:
       
   131         mkdir support/expat-2.0.1/build && cd support/expat-2.0.1/build && CFLAGS=-m32 ../configure --prefix=$$PWD
       
   132         $(MAKE) -C support/expat-2.0.1/build
       
   133         $(MAKE) -C support/expat-2.0.1/build install
       
   134 '
       
   135 
       
   136     "Created: / 22-08-2006 / 23:59:16 / cg"
       
   137     "Modified: / 22-04-2013 / 16:38:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   138 !
       
   139 
       
   140 additionalTargets_bc_dot_mak
       
   141     "obsolete - kept for compatibility with old project files"
       
   142     
       
   143     ^ 'support/expat-2.0.1/bcb5/release/libexpats_mtd.lib'
       
   144 
       
   145     "Created: / 09-01-2010 / 14:02:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   146 !
       
   147 
       
   148 additionalTargets_make_dot_proto
       
   149     "allows for additional targets to be added to the make.proto file."
       
   150 
       
   151     ^ 'support/expat-2.0.1/build/lib/libexpat.a'
       
   152 
       
   153     "Created: / 22-08-2006 / 23:53:33 / cg"
       
   154 !
       
   155 
       
   156 localIncludes
       
   157     "allow for the specification of additional include directories"
       
   158 
       
   159     ^ '-Isupport/expat-2.0.1/lib'
       
   160 
       
   161     "Created: / 09-01-2010 / 14:03:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   162 ! !
    95 ! !
   163 
    96 
   164 !stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - contents'!
    97 !stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - contents'!
   165 
    98 
   166 classNamesAndAttributes
    99 classNamesAndAttributes
   169      or an array-literal consisting of class name and attributes.
   102      or an array-literal consisting of class name and attributes.
   170      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
   103      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
   171 
   104 
   172     ^ #(
   105     ^ #(
   173         "<className> or (<className> attributes...) in load order"
   106         "<className> or (<className> attributes...) in load order"
   174         #'XMLv2::ExpatXMLReader'
   107         #'XMLv2::VWSAXBuilder'
   175         (#'XMLv2::VWSAXBuilder' autoload)
   108         #'XMLv2::VWXMLReader'
   176         (#'XMLv2::VWXMLReader' autoload)
       
   177         #'stx_goodies_xmlsuite_xmlreaderimpl'
   109         #'stx_goodies_xmlsuite_xmlreaderimpl'
   178     )
   110     )
   179 !
   111 !
   180 
   112 
   181 extensionMethodNames
   113 extensionMethodNames
   182     "lists the extension methods which are to be included in the project.
   114     "list class/selector pairs of extensions.
   183      Entries are 2-element array literals, consisting of class-name and selector."
   115      A correponding method with real names must be present in my concrete subclasses"
   184 
   116 
   185     ^ #(
   117     ^ #(
   186     )
   118     )
   187 ! !
   119 ! !
   188 
   120 
   234 
   166 
   235 version
   167 version
   236     ^'$Id$'
   168     ^'$Id$'
   237 !
   169 !
   238 
   170 
       
   171 version_HG
       
   172     ^ '$Changeset: <not expanded> $'
       
   173 !
       
   174 
   239 version_SVN
   175 version_SVN
   240     ^ '$Id$'
   176     ^ '$Id$'
   241 ! !
   177 ! !
   242 
   178