blob: d04d3d35c5b2a3e256a7e7847336d2d0a30414f3 (
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
|
/* -*- C++ -*- */
// ============================================================================
/**
* @file Basic_Logging_Service.h
*
* $Id$
*
* Front End of the Telecom Log Service
* Basic_Logging_Service
*
*
* @author D A Hanvey (d.hanvey@qub.ac.uk)
*/
// ============================================================================
#ifndef BASIC_LOGGING_SERVICE_H
#define BASIC_LOGGING_SERVICE_H
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/DsLogAdminC.h"
#include "orbsvcs/Log/BasicLogFactory_i.h"
class Basic_Logging_Service
{
// = TITLE
// Logging_Service
//
// = DESCRIPTION
// Implementation of the Telecom Log Service
public:
// = Initialization and termination methods.
Basic_Logging_Service (void);
// Constructor.
virtual ~Basic_Logging_Service (void);
// Destructor.
int parse_args (int argc, char *argv []);
// Parses the command line arguments.
int startup (int argc, char *argv[]
ACE_ENV_ARG_DECL);
// Initializes the Telecom Log Service.
// Returns 0 on success, -1 on error.
int run (void);
// run the Telecom Log Service.
// Returns 0 on success, -1 on error.
void shutdown (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
// Shutdown the Telecom Log Service.
// Returns 0 on success, -1 on error.
protected:
void init_ORB (int& argc, char *argv []
ACE_ENV_ARG_DECL);
// initialize the ORB.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
// Resolve the naming service.
// = Data members
const char* basic_log_factory_name_;
// The Log Factory name.
TAO_BasicLogFactory_i basic_log_factory_;
// The Basic Log Factory.
CORBA::ORB_var orb_;
// The ORB that we use.
PortableServer::POA_var poa_;
// Reference to the root poa.
CosNaming::NamingContext_var naming_;
// A naming context.
};
#endif /* BASIC_LOGGING_SERVICE_H */
|