summaryrefslogtreecommitdiff
path: root/protocols/ace/HTBP/HTBP_Filter_Factory.h
blob: 0681055b679e969f63f0f6d84e87ab0c529b1c09 (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
// -*- C++ -*-
// $Id$

//=============================================================================
/**
 *  @file    HTBP_Filter_Factory.h
 *
 *  $Id$
 *
 *  @author Priyanka Gontla
 */
//=============================================================================

#ifndef ACE_HTBP_FILTER_FACTORY
#define ACE_HTBP_FILTER_FACTORY
#include /**/ "ace/pre.h"

#include "HTBP_Export.h"
#include "HTBP_Filter.h"
#include "ace/Service_Config.h"
#include "ace/Service_Object.h"

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

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

namespace ACE
{
  namespace HTBP
  {
    class Stream;

    /**
     * @class Filter_Factory
     *
     * @brief Factory to get the Filters
     *
     * The Filter Factory is to be used for getting filters based on the
     * mode requested. This class is a ACE_Service_Object and should be
     * loadable with the help of the service configurator framework.
     */
    class HTBP_Export Filter_Factory : public ACE_Service_Object
    {
    public:

      /// Constructor
      Filter_Factory ();

      ~Filter_Factory ();

      /// Initialization hook.
      virtual int init (int argc, ACE_TCHAR *argv[]);

      //
      Filter *get_filter (int inside);
    };
  }
}

ACE_END_VERSIONED_NAMESPACE_DECL

ACE_STATIC_SVC_DECLARE_EXPORT (HTBP, ACE_HTBP_Filter_Factory)
ACE_FACTORY_DECLARE (HTBP, ACE_HTBP_Filter_Factory)



#include /**/ "ace/post.h"
#endif /* ACE_HTBP_FILTER_FACTORY */