File: Lname-library.idl

package info (click to toggle)
omniorb4 4.0.6-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 11,944 kB
  • ctags: 18,509
  • sloc: cpp: 87,721; ansic: 16,132; python: 10,429; sh: 2,725; yacc: 2,230; lex: 667; perl: 383; xml: 361; makefile: 76; tcl: 18
file content (56 lines) | stat: -rw-r--r-- 2,122 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//File: Lname-library.idl
//Listed with the Naming Service, but not part of it.
//
// The Lname-Library interfaces are defined in PIDL, not IDL.
// They are included here to provide a complete listing of what
//  is in the Naming Service and to test the syntax. It actually 
//  compiles as IDL.
// This libary is optional and NOT a part of CosNaming. It should
//  not be included in the CosNaming.idl file.
// The Naming Service suggests that a vendor may wish to provide
//  a language specific libary corresponding to this PIDL. This file
//  might then serve as the basis of what the language libary 
//  looks like. 
// The interfaces defined here are NOT intended to be CORBA objects.
// It should be noted that there is no module name associated 
//  because this file is not intended to be "#include"d in any
//  other .idl file. For that reason, there are also no guards.

// omniORB specific pragmas to insert extra includes into the stub header.
#pragma hh #include "COS_sysdep.h"

#include <CosNaming.idl>

	interface LNameComponent {                                                              // PIDL
		exception NotSet{};
		string get_id() 
			raises(NotSet);
		void set_id(in string i);
		string get_kind() 
			raises(NotSet);
		void set_kind(in string k);
			void destroy();
	};
	interface LName {                                                                               // PIDL
		exception NoComponent{};
		exception OverFlow{};
		exception InvalidName{};                                
		LName insert_component(	in unsigned long i, 
								in LNameComponent n) 
			raises(	NoComponent, 
					OverFlow);
		LNameComponent get_component(in unsigned long i)
			raises(NoComponent);                           
		LNameComponent delete_component(in unsigned long i)
			raises(NoComponent);                           
		unsigned long num_components();
		boolean equal(in LName ln);
		boolean less_than(in LName ln);
		CosNaming::Name to_idl_form()
			raises(InvalidName);                             
		void from_idl_form(in CosNaming::Name n);
		void destroy();
	};

//Note: end of option LName PIDL