blob: 19f9c3af81e73897f99f7c0e1e0aa7afc0779c2a (
plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
// **********************************************************************
//
// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
#ifndef HELLO_ICE
#define HELLO_ICE
module Demo
{
class Hello
{
/**
*
* Display message on the standard output.
*
**/
nonmutating void sayHello();
/**
*
* Destroy the object.
*
**/
void destroy();
/**
*
* The [Hello] object name.
*
**/
string name;
};
exception NameExistsException
{
};
exception NameNotExistException
{
};
interface HelloFactory
{
/**
*
* Create a [Hello] object.
*
* @param name The name of the [Hello] object.
*
* @return A [Hello] object
*
* @throws NameExistsException Raised if a [Hello] object with
* the name already exists.
*
**/
Hello* create(string name)
throws NameExistsException;
/**
*
* Find a [Hello] object.
*
* @param name The name of the [Hello] object.
*
* @return The [Hello] object.
*
* @throws NameNotExistException Raised if the [Hello] object
* can't be found.
*
**/
nonmutating Hello* find(string name)
throws NameNotExistException;
};
};
#endif
|