Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS / clients / Blobby / Options.h
blob7c2ffbb0a340853b88945f4c0a7cf268213e234f
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Options.h
7 * Options is an Singleton for blobby
9 * @author Prashant Jain and Sumedh Mungee
11 //=============================================================================
14 #ifndef ACE_BLOBBY_OPTIONS_H
15 #define ACE_BLOBBY_OPTIONS_H
17 #include "Blob.h"
18 #include "Blob_Handler.h"
19 #include "ace/Get_Opt.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 # pragma once
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #include "ace/ARGV.h"
27 class Options
29 public:
30 /// Returns the singleton instance
31 static Options *instance ();
33 /// parses commandline arguments
34 void parse_args (int argc, ACE_TCHAR *argv[]);
36 /// Hostname to connect to
37 ACE_TCHAR *hostname_;
39 /// Port number to use
40 u_short port_;
42 /// Filename to upload/download
43 ACE_TCHAR *filename_;
45 /// number of bytes to read/write
46 int length_;
48 /// offset to read/write
49 int offset_;
51 /// "r" means download (read), and "w" means upload (write).
52 char operation_;
54 /// turns on verbosity
55 int debug_;
57 protected:
58 Options ();
59 // protected constructor, singleton
61 /// the singleton
62 static Options *instance_;
65 #endif /* ACE_BLOBBY_OPTIONS_H */