source: trunk/gsdl/src/recpt/OIDtools.h@ 189

Last change on this file since 189 was 189, checked in by sjboddie, 25 years ago

fixed some bugs

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 842 bytes
Line 
1/**********************************************************************
2 *
3 * OIDtools.h --
4 * Copyright (C) 1999 The New Zealand Digital Library Project
5 *
6 * PUT COPYRIGHT NOTICE HERE
7 *
8 * $Id: OIDtools.h 189 1999-03-05 03:53:56Z sjboddie $
9 *
10 *********************************************************************/
11
12
13#ifndef OIDTOOLS_H
14#define OIDTOOLS_H
15
16#include "text_t.h"
17
18// get first four characters of whatever string is passed in
19// targetdoc. targetdoc will normally be either a document
20// or classification OID so this returns the CLSU, HASH etc.
21void get_head (const text_t &targetdoc, text_t &head);
22
23// returns (in top) the top level of targetdoc (i.e. everything
24// up until the first dot)
25void get_top (const text_t &targetdoc, text_t &top);
26
27// checks if targetdoc is top level of a document (i.e. contains no dots)
28bool is_top (const text_t &targetdoc);
29
30
31
32#endif
Note: See TracBrowser for help on using the repository browser.