blob: 6f5c6b54cafb1b81cb1bea2ed36e369ef40f77cc (
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
|
// $Id$
#include "Server_init.h"
#include <ccm/CCM_ComponentC.h>
#include <ccm/CCM_StandardConfiguratorC.h>
#include "ciao/Valuetype_Factories/Cookies.h"
#include "ciao/Logger/Log_Macros.h"
#include "Client_init.h"
#include "ace/Tokenizer_T.h"
namespace CIAO
{
int
Server_init (CORBA::ORB_ptr o)
{
Client_init (o);
CIAO_REGISTER_VALUE_FACTORY (o,
CIAO::Cookie_Impl_init,
Components::Cookie);
return 0;
}
namespace Utility
{
int write_IOR (const ACE_TCHAR *pathname, const char *ior)
{
FILE* ior_output_file_ = ACE_OS::fopen (pathname, ACE_TEXT("w"));
if (ior_output_file_)
{
ACE_OS::fprintf (ior_output_file_,
"%s",
ior);
ACE_OS::fclose (ior_output_file_);
return 0;
}
return -1;
}
} /* namespace Utility */
} /* namespace CIAO */
|