summaryrefslogtreecommitdiff
path: root/DAnCE/tools/Config_Handlers/PL_Handler.h
blob: 3bd2375905e43918808624e2fc5fb73f04837f35 (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
/**
 * @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
{  struct PlanLocality;
  class PlanLocalities;
}

namespace DAnCE
{
  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