summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/new_RepositoryManager/Options.h
blob: 0b6acf62d7649e35ad2008111b67aca90714c35a (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
71
72
73
74
75
// $Id$

/* -*- C++ -*- */
// Options.h, Stoyan

//============================================================================
//
// = LIBRARY
//    JAWS
//
// = FILENAME
//    Options.h
//
// = DESCRIPTION
//     Options is an Singleton for blobby
//
// = AUTHOR
//    Stoyan Paunov
//
//============================================================================

#ifndef HTTP_OPTIONS_H
#define HTTP_OPTIONS_H

#include "ace/Get_Opt.h"
#include "ace/String_Base.h"
#include "ace/OS_NS_string.h"				//for ACE_CString 

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

#include "ace/ARGV.h"

class Options
{
public:
  static Options *instance (void);
  // Returns the singleton instance

  void parse_args (int argc, ACE_TCHAR *argv[]);
  // parses commandline arguments

  ACE_CString package_;
  // Name of package

  ACE_CString local_path_;
  // specifies the local path for install

  ACE_CString artifact_;
  // Implementation Artifact requested

  bool delete_;
  // delete the package_ name

  bool install_;
  // installs the package_ name

  bool plan_;
  // retrieves the DeploymentPlan specified in the package_ name

  bool shutdown_;
  //shutdown the RepositoryManagerDemon

protected:
  Options (void);
  // protected constructor, singleton

  static Options *instance_;
  // the singleton

  void usage (void);
};

#endif /* HTTP_OPTIONS_H */