Changeset 8452


Ignore:
Timestamp:
2004-11-04T17:19:48+13:00 (19 years ago)
Author:
jrm21
Message:

added a 'collection_macros' field to ColInfoResponse_t struct, so we
can get collection-specific macros from the collect.cfg file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/comtypes.h

    r7412 r8452  
    22 *
    33 * comtypes.h --
    4  * Copyright (C) 1999  The New Zealand Digital Library Project
     4 * Copyright (C) 1999,2004  The New Zealand Digital Library Project
    55 *
    66 * A component of the Greenstone digital library software
     
    3434#  include <ospace\std\vector>
    3535#  include <ospace\std\list>
     36#  include <ospace\std\memory> // for pair
    3637#  include <ospace\std\map>
    3738#elif defined(GSDL_USE_STL_H)
    3839#  include <vector.h>
    3940#  include <list.h>
     41#  include <memory.h> // for pair
    4042#  include <map.h>
    4143#else
    4244#  include <vector>
    4345#  include <list>
     46#  include <memory> // for pair
    4447#  include <map>
    4548#endif
     
    6467};
    6568
    66 
    67 // ColInfoResponse ::= SEQUENCE {
    68 //   shortInfo      [0]  IMPLICIT ShortCollectionInfo,
    69 //   isPublic       [2]  IMPLICIT BOOLEAN,    -- whether has anonymous access
    70 //   isBeta         [3]  IMPLICIT BOOLEAN,    -- beta if still under development
    71 //   buildDate      [4]  IMPLICIT GeneralizedTime,
    72 //   ccsCols        [5]  IMPLICIT StringSet,  -- collections that form cross-col search
    73 //   languages      [6]  IMPLICIT StringSet,  -- languages in the collection
    74 //   numDocs        [7]  IMPLICIT INTEGER,
    75 //   numSections    [8]  IMPLICIT INTEGER OPTIONAL,
    76 //   numWords       [9]  IMPLICIT INTEGER OPTIONAL,
    77 //   numBytes       [10] IMPLICIT INTEGER OPTIONAL
    78 //   collectionmeta [11] IMPLICIT StringSet
    79 //   format         [12] IMPLICIT StringSet
    80 //   building       [13] IMPLICIT StringSet
    81 //   receptionist   [14] IMPLICIT GeneralString
    82 //   buildType      [15] IMPLICIT GeneralString
    83 //   searchTypes    [16] IMPLICIT StringSet
    84 // }
     69/* macro name -> (params, value) */
     70typedef multimap<text_t, pair<text_t, text_t> > macros_map;
     71
    8572struct ColInfoResponse_t {
    8673   void clear ();
     
    10087   text_tmap      collectionmeta;
    10188   text_tmap      format;
     89   macros_map     collection_macros; // for collectionmacro config directive (> gsdl 2.53)
    10290   text_tmap      building;
    10391   text_t         httpdomain;      // GRB: could these two http items need removing
Note: See TracChangeset for help on using the changeset viewer.