summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.h
blob: 515d795beed031b77f00efc9fe83e475689a4cf4 (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
/* -*- C++ -*- */
// $Id$

// ============================================================================
// = LIBRARY
//   orbsvcs
//
// = FILENAME
//   BasicLog_i.h
//
// = DESCRIPTION
//   Implementation of the DsLogAdmin::BasicLog interface.
//
// = AUTHOR
//    Matthew Braun (mjb2@cs.wustl.edu) and Pradeep Gore <pradeep@cs.wustl.edu>
//
// ============================================================================

#ifndef TLS_BASICLOG_I_H
#define TLS_BASICLOG_I_H

#include "orbsvcs/DsLogAdminS.h"
#include "orbsvcs/Log/Log_i.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

class LogMgr_i;

class BasicLog_i : public Log_i,
                   public POA_DsLogAdmin::BasicLog,
                   public virtual PortableServer::RefCountServantBase
{
  // = TITLE
  //   BasicLog_i
  // = DESCRIPTION
  //   The class supports the <destroy> method to destroy the Log.
  //
public:
  // = Initialization and Termination.
  BasicLog_i (LogMgr_i &logmgr_i,
              DsLogAdmin::LogMgr_ptr factory,
              DsLogAdmin::LogId id,
              DsLogAdmin::LogFullAction log_full_action = DsLogAdmin::wrap,
              CORBA::ULongLong max_size = 0,
              ACE_Reactor *reactor = ACE_Reactor::instance ());
  // Constructor

  ~BasicLog_i ();
  // Destructor.

  void
  destroy (CORBA::Environment &ACE_TRY_ENV =
	   CORBA::default_environment ())
    ACE_THROW_SPEC ((CORBA::SystemException));
  // Destroy the log object and all contained records.

 protected:
  LogMgr_i &logmgr_i_;
  // Used to access the hash map that holds all the Logs created.
};
#endif /* TLS_BASICLOG_I_H */