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
|
// $Id$
#include "Server_init.h"
#include "CIAO_common.h"
#include "CCM_ComponentC.h"
#include "Cookies.h"
#include "ace/OS_NS_stdio.h"
int
CIAO::Server_init (CORBA::ORB_ptr o)
{
CIAO_REGISTER_VALUE_FACTORY (o, CIAO::Map_Key_Cookie_init,
Components::Cookie);
CIAO_REGISTER_VALUE_FACTORY (o, CIAO::Map_Key_Cookie_init,
CIAO::Cookie);
CIAO_REGISTER_VALUE_FACTORY (o, Components::PortDescription_init,
Components::PortDescription);
CIAO_REGISTER_VALUE_FACTORY (o, Components::FacetDescription_init,
Components::FacetDescription);
CIAO_REGISTER_VALUE_FACTORY (o, Components::ConnectionDescription_init,
Components::ConnectionDescription);
CIAO_REGISTER_VALUE_FACTORY (o, Components::ReceptacleDescription_init,
Components::ReceptacleDescription);
CIAO_REGISTER_VALUE_FACTORY (o, Components::ConsumerDescription_init,
Components::ConsumerDescription);
CIAO_REGISTER_VALUE_FACTORY (o, Components::EmitterDescription_init,
Components::EmitterDescription);
CIAO_REGISTER_VALUE_FACTORY (o, Components::SubscriberDescription_init,
Components::SubscriberDescription);
CIAO_REGISTER_VALUE_FACTORY (o, Components::PublisherDescription_init,
Components::PublisherDescription);
CIAO_REGISTER_VALUE_FACTORY (o, Components::ConfigValue_init,
Components::ConfigValue);
CIAO_REGISTER_VALUE_FACTORY (o, Components::ComponentPortDescription_init,
Components::ComponentPortDescription);
return 0;
}
int
CIAO::Utility::write_IOR (const char *pathname,
const char *ior)
{
FILE* ior_output_file_ =
ACE_OS::fopen (pathname, "w");
if (ior_output_file_)
{
ACE_OS::fprintf (ior_output_file_,
"%s",
ior);
ACE_OS::fclose (ior_output_file_);
return 0;
}
return -1;
}
|