summaryrefslogtreecommitdiff
path: root/DAnCE/dance/LocalityManager/Handler/Plugin_Conf.h
blob: dbe635eafe87da97a8a3e342708e16c9b0f8f1d1 (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
/**
 * @file Plugin_Conf.h
 * @author William R. Otte <wotte@dre.vanderbilt.edu>
 *
 * Handles installation of plugins from a configuration file.
 */

#ifndef PLUGIN_CONF_H
#define PLUGIN_CONF_H

#include "dance/Deployment/Deployment_DeploymentPlanC.h"
#include "dance/LocalityManager/Handler/DAnCE_Locality_Handler_export.h"

namespace DAnCE
{
  class DAnCE_Locality_Handler_Export Plugin_Configurator
  {
  public:
    void load_from_text_file (const ACE_TCHAR *file);

  private:
    void deploy_plan (::Deployment::DeploymentPlan &plan);

    void create_entry (const char *artifact,
                       const char *entrypoint,
                       const char *type,
                       int open_mode,
                       ::Deployment::DeploymentPlan &plan,
                       CORBA::ULong pos);
  };
}
#endif