summaryrefslogtreecommitdiff
path: root/modules/CIAO/DAnCE/Config_Handlers/PL_Handler.h
blob: 0511b81be48e12f1f107bb28dc4c063a8ac3ae60 (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
// $Id$

/**
 * @file PL_Handler.h
 * @author William R. Otte <wotte@dre.vanderbilt.edu>
 *
 * Handles PlanLocality elements
 *
 */

#ifndef CIAO_CONFIG_HANDLERS_PL_HANDLER_
#define CIAO_CONFIG_HANDLERS_PL_HANDLER_

#include "Config_Handlers_Export.h"
#include "ace/config-lite.h"

#include "Utils/Functors.h"

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

namespace Deployment
{// $Id$

  struct PlanLocality;
  class PlanLocalities;
}

namespace CIAO
{
  namespace Config_Handlers
  {
    class PlanLocality;

    class Config_Handlers_Export PL_Handler
    {
    public:
      static void get_PlanLocality (const PlanLocality &desc,
                                    Deployment::PlanLocality &toconfig);
      
      static PlanLocality  plan_locality (const ::Deployment::PlanLocality &src);
    };
    
    typedef Sequence_Handler < PlanLocality,
                               ::Deployment::PlanLocalities,
                               ::Deployment::PlanLocality,
                               PL_Handler::get_PlanLocality >  PL_Functor;
    
  }
}

#endif