blob: 9a4d229d348c352527ea40405c7ec0a0cdf82f43 (
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
|
/**
* @file Name_Utilities.h
* @author William R. Otte <wotte@dre.vanderbilt.edu>
* // $Id$
* A set of utility methods to manages references.
*
*/
#ifndef NAME_UTILITIES_H
#define NAME_UTILITIES_H
#include "orbsvcs/CosNamingC.h"
namespace DAnCE
{
class Name_Utilities
{
public:
/// Write IOR to named file. Will overwrite file if present.
static bool write_ior (const ACE_TCHAR *file, const char *ior);
/// Binds object to provided name, which may be formatted with / to indicate
/// naming contexts, e.g. A/B/C.
static bool bind_object (const char *name,
CORBA::Object_ptr obj,
CosNaming::NamingContext_ptr);
/// Will unbind the provided name.
static bool unbind_object (const char *name,
CosNaming::NamingContext_ptr);
private:
static void bind_context (CosNaming::Name &nm,
CosNaming::NamingContext_ptr);
static void build_name (const char *nm,
CosNaming::Name &);
};
}
#endif /* NAME_UTILITIES_H */
|