Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / APG / Naming / Nodelocal_shared_reader.cpp
blob328cf7edf58198896658ab23422d76185c1f7997
1 #include "Naming_Context.h"
2 #include "Temperature_Grapher.h"
3 #include "Temperature_Grapher_Options.h"
5 // Listing 1 code/ch21
6 int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
8 Temperature_Grapher_Options opt (argc, argv);
10 Naming_Context naming_context;
11 ACE_Name_Options *name_options = naming_context.name_options ();
12 name_options->process_name (argv[0]);
13 name_options->context (ACE_Naming_Context::NODE_LOCAL);
14 naming_context.open (name_options->context ());
16 Temperature_Grapher grapher (opt, naming_context);
17 grapher.monitor ();
18 naming_context.close ();
19 return 0;
21 // Listing 1