summaryrefslogtreecommitdiff
path: root/examples/ASX/Event_Server/Event_Server/Options.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ASX/Event_Server/Event_Server/Options.h')
-rw-r--r--examples/ASX/Event_Server/Event_Server/Options.h102
1 files changed, 0 insertions, 102 deletions
diff --git a/examples/ASX/Event_Server/Event_Server/Options.h b/examples/ASX/Event_Server/Event_Server/Options.h
deleted file mode 100644
index 639f013ac73..00000000000
--- a/examples/ASX/Event_Server/Event_Server/Options.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-#if !defined (OPTIONS_H)
-#define OPTIONS_H
-
-#include "ace/OS.h"
-#include "ace/Profile_Timer.h"
-
-class Options
- // = TITLE
- // Option Singleton for Event Server.
-{
- friend class ACE_Shutup_GPlusPlus; // Turn off g++ warning...
-public:
- static Options *instance (void);
-
- void parse_args (int argc, char *argv[]);
-
- void stop_timer (void);
- void start_timer (void);
-
- void thr_count (size_t count);
- size_t thr_count (void);
-
- void initial_queue_length (size_t length);
- size_t initial_queue_length (void);
-
- void high_water_mark (size_t size);
- size_t high_water_mark (void);
-
- void low_water_mark (size_t size);
- size_t low_water_mark (void);
-
- void message_size (size_t size);
- size_t message_size (void);
-
- void iterations (size_t n);
- size_t iterations (void);
-
- void t_flags (long flag);
- long t_flags (void);
-
- void supplier_port (u_short port);
- u_short supplier_port (void);
-
- void consumer_port (u_short port);
- u_short consumer_port (void);
-
- int debug (void);
- int verbose (void);
-
- void print_results (void);
-
-private:
- Options (void);
- ~Options (void);
-
- ACE_Profile_Timer itimer_;
- // Time the process.
-
- size_t thr_count_;
- // Number of threads to spawn.
-
- long t_flags_;
- // Flags to thr_create().
-
- size_t high_water_mark_;
- // ACE_Task high water mark.
-
- size_t low_water_mark_;
- // ACE_Task low water mark.
-
- size_t message_size_;
- // Size of a message.
-
- size_t initial_queue_length_;
- // Initial number of items in the queue.
-
- size_t iterations_;
- // Number of iterations to run the test program.
-
- int debugging_;
- // Extra debugging info.
-
- int verbosity_;
- // Extra verbose messages.
-
- u_short consumer_port_;
- // Port that the Consumer_Router is using.
-
- u_short supplier_port_;
- // Port that the Supplier_Router is using.
-
- static Options *instance_;
- // Static Singleton.
-
-
-};
-
-#include "Options.i"
-#endif /* OPTIONS_H */