Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtinfo / DtMmdb / oliasdb / locator_hd.h
1 /*
2  * $XConsortium: locator_hd.h /main/5 1996/10/26 18:18:57 cde-hal $
3  *
4  * Copyright (c) 1992 HAL Computer Systems International, Ltd.
5  * All rights reserved.  Unpublished -- rights reserved under
6  * the Copyright Laws of the United States.  USE OF A COPYRIGHT
7  * NOTICE IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION
8  * OR DISCLOSURE.
9  * 
10  * THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE
11  * SECRETS OF HAL COMPUTER SYSTEMS INTERNATIONAL, LTD.  USE,
12  * DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE
13  * PRIOR EXPRESS WRITTEN PERMISSION OF HAL COMPUTER SYSTEMS
14  * INTERNATIONAL, LTD.
15  * 
16  *                         RESTRICTED RIGHTS LEGEND
17  * Use, duplication, or disclosure by the Government is subject
18  * to the restrictions as set forth in subparagraph (c)(l)(ii)
19  * of the Rights in Technical Data and Computer Software clause
20  * at DFARS 252.227-7013.
21  *
22  *          HAL COMPUTER SYSTEMS INTERNATIONAL, LTD.
23  *                  1315 Dell Avenue
24  *                  Campbell, CA  95008
25  * 
26  */
27
28
29 #ifndef _locator_hd_h
30 #define _locator_hd_h 1
31
32 #include "object/short_list.h"
33 #include "object/tuple.h"
34 #include "object/oid.h"
35 #include "object/pstring.h"
36 #include "object/integer.h"
37 #include "oliasdb/olias_consts.h"
38 #include "api/smart_ptr.h"
39
40 /*************************************/
41 // The locator class
42 /*************************************/
43
44 class olias_locator : public tuple
45 {
46
47 public:
48    olias_locator();
49    virtual ~olias_locator() {};
50
51    MMDB_SIGNATURES(olias_locator);
52
53 protected:
54 };
55
56 typedef olias_locator* locatorPtr;
57
58 class locator_smart_ptr : public smart_ptr
59 {
60 public:
61    locator_smart_ptr(info_lib* lib_ptr,
62                      const char* info_base_name, const char* locator);
63    locator_smart_ptr(info_base* base_ptr, const char* locator);
64    locator_smart_ptr(info_base* base_ptr, const oid_t& id);
65
66    virtual ~locator_smart_ptr() {};
67
68
69    const char* inside_node_locator_str();
70    oid_t node_id();
71    const char* label();
72    //int vcc_num();
73 };
74
75 typedef locator_smart_ptr* locator_smart_ptrPtr;
76
77
78
79 #endif