1 | /**********************************************************************
|
---|
2 | *
|
---|
3 | * comtypes.h --
|
---|
4 | * Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
5 | *
|
---|
6 | * PUT COPYRIGHT NOTICE HERE
|
---|
7 | *
|
---|
8 | * $Id: comtypes.h 166 1999-02-21 22:35:26Z rjmcnab $
|
---|
9 | *
|
---|
10 | *********************************************************************/
|
---|
11 |
|
---|
12 |
|
---|
13 | #ifndef COMTYPES_H
|
---|
14 | #define COMTYPES_H
|
---|
15 |
|
---|
16 | #include "gsdlconf.h"
|
---|
17 | #include "text_t.h"
|
---|
18 |
|
---|
19 |
|
---|
20 | enum comerror_t {noError, authenticationFailure, protocolError, systemProblem};
|
---|
21 |
|
---|
22 |
|
---|
23 | // ShortColInfo ::= SEQUENCE {
|
---|
24 | // name GeneralString,
|
---|
25 | // host GeneralString,
|
---|
26 | // port INTEGER
|
---|
27 | // }
|
---|
28 | struct ShortColInfo_t {
|
---|
29 | ShortColInfo_t () {port=0;}
|
---|
30 |
|
---|
31 | text_t name;
|
---|
32 | text_t host;
|
---|
33 | int port;
|
---|
34 | };
|
---|
35 |
|
---|
36 |
|
---|
37 | // ColInfoResponse ::= SEQUENCE {
|
---|
38 | // shortInfo [0] IMPLICIT ShortCollectionInfo,
|
---|
39 | // isPublic [2] IMPLICIT BOOLEAN, -- whether has anonymous access
|
---|
40 | // isBeta [3] IMPLICIT BOOLEAN, -- beta if still under development
|
---|
41 | // buildDate [4] IMPLICIT GeneralizedTime,
|
---|
42 | // languages [5] IMPLICIT StringSet, -- languages in the collection
|
---|
43 | // numDocs [6] IMPLICIT INTEGER,
|
---|
44 | // numWords [7] IMPLICIT INTEGER OPTIONAL,
|
---|
45 | // numBytes [8] IMPLICIT INTEGER OPTIONAL
|
---|
46 | // }
|
---|
47 | struct ColInfoResponse_t {
|
---|
48 | ColInfoResponse_t ();
|
---|
49 |
|
---|
50 | ShortColInfo_t shortInfo;
|
---|
51 | bool isPublic;
|
---|
52 | bool isBeta;
|
---|
53 | unsigned long buildDate;
|
---|
54 | text_tarray languages;
|
---|
55 | unsigned long numDocs; // 0 if not known
|
---|
56 | unsigned long numWords; // 0 if not known
|
---|
57 | unsigned long numBytes; // 0 if not known
|
---|
58 | };
|
---|
59 |
|
---|
60 |
|
---|
61 | #endif
|
---|