~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/tests/FT_App/FT_Client.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// FT_Client.cpp,v 1.2 2003/12/22 01:44:38 wilson_d Exp
2
 
 
3
 
#include "FT_TestReplicaC.h"
4
 
#include <ace/Vector_T.h>
5
 
#include <ace/SString.h>
6
 
#include <ace/Get_Opt.h>
7
 
#include <iostream>
8
 
#include <fstream>
9
 
 
10
 
class FTClientMain
11
 
{
12
 
  typedef ACE_Vector<ACE_CString> StringVec;
13
 
 public:
14
 
  ///////////////////////////
15
 
  // construction/destruction
16
 
  FTClientMain ();
17
 
 
18
 
  ~FTClientMain ();
19
 
 
20
 
  /////////////////
21
 
  // initialization
22
 
  int parse_args (int argc, char *argv[]);
23
 
 
24
 
  ////////////
25
 
  // execution
26
 
  int run ();
27
 
 
28
 
  /////////////////
29
 
  // implementation
30
 
private:
31
 
  void usage (ostream & out)const;
32
 
  void commandUsage (ostream & out);
33
 
  int pass (
34
 
    long & counter,         // inout
35
 
    int & more,             // out
36
 
    ACE_CString & command,  // inout
37
 
    int retry               // in
38
 
    );
39
 
 
40
 
 
41
 
  int next_replica (ACE_ENV_SINGLE_ARG_DECL);
42
 
 
43
 
  ////////////////////
44
 
  // forbidden methods
45
 
 private:
46
 
    FTClientMain (const FTClientMain & rhs);
47
 
    FTClientMain & operator = (const FTClientMain & rhs);
48
 
 
49
 
  ////////////////
50
 
  // Data members
51
 
 private:
52
 
 
53
 
  CORBA::ORB_var orb_;
54
 
 
55
 
  int argc_;
56
 
  char ** argv_;
57
 
  const char * inFileName_;
58
 
  std::ifstream inFile_;
59
 
  std::istream *commandIn_;
60
 
 
61
 
  enum Verbosity{
62
 
    SILENT,
63
 
    QUIET,
64
 
    NORMAL,
65
 
    NOISY,
66
 
    LOUD}
67
 
    verbose_;
68
 
 
69
 
 
70
 
  StringVec replica_iors_;
71
 
  size_t replica_pos_;
72
 
  const char * replica_name_;
73
 
  FT_TEST::TestReplica_var replica_;
74
 
};
75
 
 
76
 
 
77
 
FTClientMain::FTClientMain ()
78
 
  : commandIn_(&std::cin)
79
 
  , verbose_(NORMAL)
80
 
  , replica_pos_(0)
81
 
  , replica_name_("none")
82
 
{
83
 
}
84
 
 
85
 
FTClientMain::~FTClientMain ()
86
 
{
87
 
  if (this->inFile_.is_open())
88
 
  {
89
 
    this->inFile_.close();
90
 
  }
91
 
}
92
 
 
93
 
void FTClientMain::commandUsage(ostream & out)
94
 
{
95
 
  out
96
 
    << "Each command must be at the beginning of a separate line." << std::endl
97
 
    << "Everything after the command (and operand if any) is ignored." << std::endl
98
 
    << "Valid commands are:" << std::endl
99
 
    << "  Access via method call:" << std::endl
100
 
    << "    =N    set counter to N" << std::endl
101
 
    << "    cN    get counter and compare to N (c stands for \"check\""<< std::endl
102
 
    << "    +N    increment counter by N" << std::endl
103
 
    << "    -N    decrement counter by N" << std::endl
104
 
    << "  Access as attribute:" << std::endl
105
 
    << "    >N    set attribute to N" << std::endl
106
 
    << "    <     get attribite" << std::endl
107
 
    << "  Try methods to be used by fault tolerant infrastructure: " << std::endl
108
 
    << "    !     is_alive" << std::endl
109
 
    << "    s     get_state" << std::endl
110
 
    << "    S     set_state" << std::endl
111
 
    << "    u     get_update" << std::endl
112
 
    << "    U     set_update" << std::endl
113
 
    << "  Simulate failure:" << std::endl
114
 
    << "    dN    die on condition:" << std::endl
115
 
    << "        d" << FT_TEST::TestReplica::NOT_YET << " don't die" << std::endl
116
 
    << "        d" << FT_TEST::TestReplica::RIGHT_NOW << " immediately" << std::endl
117
 
    << "        d" << FT_TEST::TestReplica::WHILE_IDLE << " while idle" << std::endl
118
 
    << "      (FT_TestReplica interface)" << std::endl
119
 
    << "        d" << FT_TEST::TestReplica::BEFORE_STATE_CHANGE << " before state change" << std::endl
120
 
    << "        d" << FT_TEST::TestReplica::BEFORE_REPLICATION << " after state change, before replication" << std::endl
121
 
    << "        d" << FT_TEST::TestReplica::BEFORE_REPLY << " after replication, before reply "<< std::endl
122
 
    << "      (Monitorable interface)" << std::endl
123
 
    << "        d" << FT_TEST::TestReplica::DURING_IS_ALIVE << " during is alive" << std::endl
124
 
    << "        d" << FT_TEST::TestReplica::DENY_IS_ALIVE << " is_alive returns false" << std::endl
125
 
    << "      (Updatable interface)" << std::endl
126
 
    << "        d" << FT_TEST::TestReplica::DURING_GET_UPDATE << " during get update" << std::endl
127
 
    << "        d" << FT_TEST::TestReplica::BEFORE_SET_UPDATE << " before set update" << std::endl
128
 
    << "        d" << FT_TEST::TestReplica::AFTER_SET_UPDATE << " after set update" << std::endl
129
 
    << "      (Checkpointable interface)" << std::endl
130
 
    << "        d" << FT_TEST::TestReplica::DURING_GET_STATE << " during get state" << std::endl
131
 
    << "        d" << FT_TEST::TestReplica::BEFORE_SET_STATE << " before set state" << std::endl
132
 
    << "        d" << FT_TEST::TestReplica::AFTER_SET_STATE << " after set state" << std::endl
133
 
    << " Logistics commands:" << std::endl
134
 
    << "   #    ignore this line (comment)." << std::endl
135
 
    << "   v    set verbosity:" << std::endl
136
 
    << "     0 don't check counter value." << std::endl
137
 
    << "     1 only display counter value mismatch." << std::endl
138
 
    << "     2 display counter value after every command (default)." << std::endl
139
 
    << "     3 display commands." << std::endl
140
 
    << "     4 display method calls." << std::endl
141
 
    << "   zN   sleep N seconds." << std::endl
142
 
    << "   q    quit (end the client, not the replica(s).)" << std::endl
143
 
    << "   q1   quit (end the client, and shutdown the currently active replica.)" << std::endl
144
 
    << "   ?    help (this message)" << std::endl;
145
 
}
146
 
 
147
 
int
148
 
FTClientMain::parse_args (int argc, char *argv[])
149
 
{
150
 
  this->argc_ = argc;
151
 
  this->argv_ = argv;
152
 
  int result = 0;
153
 
 
154
 
  // note: dfnkx are simple_util options
155
 
  // include them here so we can detect bad args
156
 
  ACE_Get_Opt get_opts (argc, argv, "c:f:");
157
 
  int c;
158
 
 
159
 
  while (result == 0 && (c = get_opts ()) != -1)
160
 
  {
161
 
    switch (c)
162
 
    {
163
 
      case 'c':
164
 
      {
165
 
        this->inFileName_ = get_opts.opt_arg ();
166
 
        this->inFile_.open(this->inFileName_);
167
 
        if(this->inFile_.is_open() && this->inFile_.good())
168
 
        {
169
 
          std::cout << "FT Client: Reading commands from " << this->inFileName_ << std::endl;
170
 
          this->commandIn_ = & this->inFile_;
171
 
        }
172
 
        else
173
 
        {
174
 
          std::cout << "FT Client: Can't open input file: " << this->inFileName_ << std::endl;
175
 
          result = -1;
176
 
        }
177
 
        break;
178
 
      }
179
 
      case 'f':
180
 
      {
181
 
        replica_iors_.push_back(get_opts.opt_arg ());
182
 
        break;
183
 
      }
184
 
 
185
 
      default:
186
 
      case '?':
187
 
        usage(std::cerr);
188
 
        result = 1;
189
 
    }
190
 
  }
191
 
  return result;
192
 
}
193
 
 
194
 
void FTClientMain::usage(ostream & out)const
195
 
{
196
 
  out << "usage"
197
 
      << " -c <command file>"
198
 
      << " [-f <ior file>]..."
199
 
      << std::endl;
200
 
}
201
 
 
202
 
int FTClientMain::pass (
203
 
  long & counter,
204
 
  int & more,
205
 
  ACE_CString & command,
206
 
  int retry)
207
 
{
208
 
  int result = 0;
209
 
 
210
 
  ::FT::State_var state;
211
 
  unsigned long stateValue = 0;
212
 
  ::FT::State_var update;
213
 
  unsigned long updateValue = 0;
214
 
 
215
 
  while(more && result == 0 &&  ! this->commandIn_->eof())
216
 
  {
217
 
    if (! retry || command.length () == 0 )
218
 
    {
219
 
      char buffer[1000];
220
 
      this->commandIn_->getline(buffer, sizeof(buffer)-1);
221
 
      command = buffer;
222
 
    }
223
 
    retry = 0;
224
 
 
225
 
    if (command.length() >0)
226
 
    {
227
 
      char op = command[0];
228
 
      ACE_CString cdr = command.substr(1);
229
 
      char * junque;
230
 
      long operand = strtol(cdr.c_str(),&junque, 10);
231
 
 
232
 
      if (this->verbose_ >= NOISY)
233
 
      {
234
 
        std::cout << "FT Client: " << command << std::endl;
235
 
      }
236
 
 
237
 
      // turn echo on (based on verbose)
238
 
      // individual commands can turn it off
239
 
      int echo = this->verbose_ >= QUIET;
240
 
 
241
 
      switch(op)
242
 
      {
243
 
        case '#':
244
 
        {
245
 
          echo = 0;
246
 
          break;
247
 
        }
248
 
        case '=':
249
 
        {
250
 
          if (this->verbose_ >= LOUD)
251
 
          {
252
 
            std::cout << "FT Client: ->set(" << operand << ");" << std::endl;
253
 
          }
254
 
          this->replica_->set(operand ACE_ENV_ARG_PARAMETER);
255
 
          ACE_CHECK_RETURN (-1);
256
 
          counter = operand;
257
 
          break;
258
 
        }
259
 
        case 'c':
260
 
        {
261
 
          if (this->verbose_ >= LOUD)
262
 
          {
263
 
            std::cout << "FT Client: ->get();" << std::endl;
264
 
          }
265
 
          long value = this->replica_->counter(ACE_ENV_SINGLE_ARG_PARAMETER);
266
 
          ACE_CHECK_RETURN (-1);
267
 
          if (value == operand)
268
 
          {
269
 
            std::cout << "FT Client: Good: Read " << value << " expecting " << operand << std::endl;
270
 
            counter = operand;
271
 
          }
272
 
          else
273
 
          {
274
 
            std::cout << "FT Client: Error: Read " << value << " expecting " << operand << std::endl;
275
 
          }
276
 
          echo = 0;
277
 
          break;
278
 
 
279
 
        }
280
 
        case '>':
281
 
        {
282
 
          if (this->verbose_ >= LOUD)
283
 
          {
284
 
            std::cout << "FT Client: ->counter(" << operand << ");" << std::endl;
285
 
          }
286
 
          this->replica_->counter(operand ACE_ENV_ARG_PARAMETER);
287
 
          ACE_CHECK_RETURN (-1);
288
 
          counter = operand;
289
 
          break;
290
 
        }
291
 
        case '+':
292
 
        {
293
 
          if (this->verbose_ >= LOUD)
294
 
          {
295
 
            std::cout << "FT Client: ->increment(" << operand << ");" << std::endl;
296
 
          }
297
 
          this->replica_->increment(operand ACE_ENV_ARG_PARAMETER);
298
 
          ACE_CHECK_RETURN (-1);
299
 
          counter += operand;
300
 
          break;
301
 
        }
302
 
        case '-':
303
 
        {
304
 
          if (this->verbose_ >= LOUD)
305
 
          {
306
 
            std::cout << "FT Client: ->increment(" << -operand << ");" << std::endl;
307
 
          }
308
 
          this->replica_->increment(-operand ACE_ENV_ARG_PARAMETER);
309
 
          ACE_CHECK_RETURN (-1);
310
 
          counter -= operand;
311
 
          break;
312
 
        }
313
 
        case '<':
314
 
        {
315
 
          if (this->verbose_ >= LOUD)
316
 
          {
317
 
            std::cout << "FT Client: ->counter();" << std::endl;
318
 
          }
319
 
          long attribute = this->replica_->counter(ACE_ENV_SINGLE_ARG_PARAMETER);
320
 
          ACE_CHECK_RETURN (-1);
321
 
          std::cout << "FT Client: Attribute: " << attribute << std::endl;
322
 
          echo = 0;
323
 
          break;
324
 
        }
325
 
        case '!':
326
 
        {
327
 
          if (this->verbose_ >= LOUD)
328
 
          {
329
 
            std::cout << "FT Client: ->is_alive();" << std::endl;
330
 
          }
331
 
          int alive = this->replica_->is_alive(ACE_ENV_SINGLE_ARG_PARAMETER);
332
 
          ACE_CHECK_RETURN (-1);
333
 
          std::cout << "FT Client: Is alive?  " << alive << std::endl;
334
 
          break;
335
 
        }
336
 
        case 'd':
337
 
        {
338
 
          if (this->verbose_ >= LOUD)
339
 
          {
340
 
            std::cout << "FT Client: ->die(" << operand << ");" << std::endl;
341
 
          }
342
 
          this->replica_->die(ACE_static_cast (FT_TEST::TestReplica::Bane, operand) ACE_ENV_ARG_PARAMETER);
343
 
          ACE_CHECK_RETURN (-1);
344
 
          echo = 0;
345
 
          break;
346
 
        }
347
 
        case 's':
348
 
        {
349
 
          if (this->verbose_ >= LOUD)
350
 
          {
351
 
            std::cout << "FT Client: ->get_state();" << std::endl;
352
 
          }
353
 
          state = this->replica_->get_state(ACE_ENV_SINGLE_ARG_PARAMETER);
354
 
          ACE_CHECK_RETURN (-1);
355
 
          stateValue = counter;
356
 
          break;
357
 
        }
358
 
        case 'S':
359
 
        {
360
 
          if (state.in() != 0)
361
 
          {
362
 
            if (this->verbose_ >= LOUD)
363
 
            {
364
 
              std::cout << "FT Client: ->set_state(saved_state);" << std::endl;
365
 
            }
366
 
            this->replica_->set_state(state ACE_ENV_ARG_PARAMETER);
367
 
            ACE_CHECK_RETURN (-1);
368
 
            counter = stateValue;
369
 
          }
370
 
          else
371
 
          {
372
 
            std::cout << "FT Client: Error: no saved state." << std::endl;
373
 
          }
374
 
          break;
375
 
        }
376
 
        case 'u':
377
 
        {
378
 
          if (this->verbose_ >= LOUD)
379
 
          {
380
 
            std::cout << "FT Client: ->get_update();" << std::endl;
381
 
          }
382
 
          update = this->replica_->get_update(ACE_ENV_SINGLE_ARG_PARAMETER);
383
 
          ACE_CHECK_RETURN (-1);
384
 
          updateValue = counter;
385
 
          break;
386
 
        }
387
 
        case 'U':
388
 
        {
389
 
          if (update.in() != 0)
390
 
          {
391
 
            if (this->verbose_ >= LOUD)
392
 
            {
393
 
              std::cout << "FT Client: ->set_update(saved_update);" << std::endl;
394
 
            }
395
 
            this->replica_->set_update(update ACE_ENV_ARG_PARAMETER);
396
 
            ACE_CHECK_RETURN (-1);
397
 
            counter = updateValue;
398
 
          }
399
 
          else
400
 
          {
401
 
            std::cout << "FT Client: ERROR: No saved update information." << std::endl;
402
 
          }
403
 
          break;
404
 
        }
405
 
        case 'v':
406
 
        {
407
 
          this->verbose_ = ACE_static_cast(Verbosity, operand);
408
 
          break;
409
 
        }
410
 
        case 'z':
411
 
        {
412
 
          if (operand == 0)
413
 
          {
414
 
            operand = 1;
415
 
          }
416
 
          ACE_Time_Value tv (operand,0);
417
 
          ACE_OS::sleep(tv);
418
 
          break;
419
 
        }
420
 
        case 'q':
421
 
        {
422
 
          if (operand != 0)
423
 
          {
424
 
            ACE_TRY_NEW_ENV
425
 
            {
426
 
              if (this->verbose_ >= LOUD)
427
 
              {
428
 
                std::cout << "FT Client: ->shutdown();" << std::endl;
429
 
              }
430
 
              this->replica_->shutdown( ACE_ENV_SINGLE_ARG_PARAMETER);
431
 
              // @@ Note: this is here because the corba event loop seems to go to sleep
432
 
              // if there's nothing for it to do.
433
 
              // not quite sure why, yet.  Dale
434
 
              this->replica_->is_alive(ACE_ENV_SINGLE_ARG_PARAMETER);
435
 
            }
436
 
            ACE_CATCHANY
437
 
            {
438
 
              std::cout << "FT Client: Ignoring expected exception during shutdown." << std::endl;
439
 
              ; // ignore exception during shutdown
440
 
            }
441
 
            ACE_ENDTRY;
442
 
          }
443
 
          echo = 0;
444
 
          more = 0;
445
 
          break;
446
 
        }
447
 
        default:
448
 
        {
449
 
          if (op != '?')
450
 
          {
451
 
            std::cout << "FT Client: Unknown: " << command << std::endl;
452
 
          }
453
 
          commandUsage(std::cerr);
454
 
          break;
455
 
        }
456
 
      }
457
 
      if (echo && this->verbose_ >= QUIET)
458
 
      {
459
 
        if (this->verbose_ >= LOUD)
460
 
        {
461
 
          std::cout << "FT Client: ->get();" << std::endl;
462
 
        }
463
 
 
464
 
        long value = this->replica_->get(ACE_ENV_SINGLE_ARG_PARAMETER);
465
 
        ACE_CHECK_RETURN (-1);
466
 
        if (value == counter)
467
 
        {
468
 
          if (this->verbose_ >= NORMAL)
469
 
          {
470
 
            std::cout << "FT Client: " << counter << std::endl;;
471
 
          }
472
 
        }
473
 
        else
474
 
        {
475
 
          std::cout << "FT Client: Error: read " << value << " expecting " << counter << std::endl;
476
 
          result = -1;
477
 
        }
478
 
      }
479
 
    }
480
 
  }
481
 
  return result;
482
 
}
483
 
 
484
 
int FTClientMain::next_replica (ACE_ENV_SINGLE_ARG_DECL)
485
 
{
486
 
  int result = 0;
487
 
  if (this->replica_pos_ < this->replica_iors_.size())
488
 
  {
489
 
    this->replica_name_ = this->replica_iors_[this->replica_pos_].c_str();
490
 
    this->replica_pos_ += 1;
491
 
    CORBA::Object_var rep_obj = this->orb_->string_to_object (this->replica_name_ ACE_ENV_ARG_PARAMETER);
492
 
    ACE_CHECK_RETURN (0)
493
 
    replica_ = FT_TEST::TestReplica::_narrow (rep_obj.in ());
494
 
    if (! CORBA::is_nil (replica_.in ()))
495
 
    {
496
 
      result = 1;
497
 
    }
498
 
    else
499
 
    {
500
 
      std::cerr << "FT Client: Can't resolve IOR: " << this->replica_name_ << std::endl;
501
 
    }
502
 
  }
503
 
  else
504
 
  {
505
 
    std::cerr << "***OUT_OF_REPLICAS*** " << this->replica_pos_ << std::endl;
506
 
  }
507
 
  return result;
508
 
}
509
 
 
510
 
 
511
 
int FTClientMain::run ()
512
 
{
513
 
  int result = 0;
514
 
 
515
 
  this->orb_ = CORBA::ORB_init(this->argc_, this->argv_ ACE_ENV_ARG_PARAMETER);
516
 
  ACE_CHECK_RETURN (-1)
517
 
 
518
 
  if (next_replica ())
519
 
  {
520
 
    // retry information
521
 
    ACE_CString command;
522
 
    int retry = 0;
523
 
    long counter = this->replica_->get(ACE_ENV_SINGLE_ARG_PARAMETER);
524
 
    ACE_CHECK_RETURN (-1);
525
 
 
526
 
    if (this->verbose_ >= NORMAL)
527
 
    {
528
 
      std::cout << "FT Client: Initial counter " << counter << std::endl;
529
 
    }
530
 
    if (ACE_OS::isatty(fileno(stdin)))
531
 
    {
532
 
      std::cout << "FT Client: Commands(? for help):" << std::endl;
533
 
    }
534
 
 
535
 
    int more = 1;
536
 
    while (more && result == 0 &&  ! this->commandIn_->eof())
537
 
    {
538
 
      ACE_TRY_NEW_ENV
539
 
      {
540
 
        result = pass (counter, more, command, retry);
541
 
        ACE_TRY_CHECK;
542
 
      }
543
 
      ACE_CATCH (CORBA::SystemException, sysex)
544
 
      {
545
 
        std::cout << "FT Client: Caught system exception: " << std::endl;
546
 
        ACE_PRINT_EXCEPTION (sysex, "FT Client");
547
 
 
548
 
        retry = 0;
549
 
        int handled = 0;
550
 
 
551
 
        handled = next_replica();
552
 
        if (handled)
553
 
        {
554
 
          std::cout << "FT Client: Recovering from fault." << std::endl;
555
 
          std::cout << "FT Client:   Activate " << this->replica_name_ << std::endl;
556
 
          if (command.length () == 0)
557
 
          {
558
 
            std::cout << "FT Client:   No command to retry." << std::endl;
559
 
          }
560
 
          else if (command[0] == 'd')
561
 
          {
562
 
            std::cout << "FT Client:   Not retrying \"die\" command." << std::endl;
563
 
          }
564
 
          else if (sysex.completed () == CORBA::COMPLETED_YES)
565
 
          {
566
 
            std::cout << "FT Client:   Last command completed.  No retry needed." << std::endl;
567
 
          }
568
 
          else
569
 
          {
570
 
            if (sysex.completed () == CORBA::COMPLETED_MAYBE)
571
 
            {
572
 
              std::cout << "FT Client:   Last command may have completed.  Retrying anyway." << std::endl;
573
 
            }
574
 
            retry = 1;
575
 
            std::cout << "FT Client:   Retrying command: " << command << std::endl;
576
 
          }
577
 
        }
578
 
        if (! handled)
579
 
        {
580
 
          std::cout << "FT Client: Exception not handled.  Rethrow. " << std::endl;
581
 
          ACE_RE_THROW;
582
 
        }
583
 
      }
584
 
      ACE_ENDTRY;
585
 
    }
586
 
  }
587
 
  else
588
 
  {
589
 
    std::cerr << "FT Client: Can't connect to replica." << std::endl;
590
 
  }
591
 
  return result;
592
 
}
593
 
 
594
 
 
595
 
int
596
 
main (int argc, char *argv[])
597
 
{
598
 
  FTClientMain app;
599
 
  int result = app.parse_args(argc, argv);
600
 
  if (result == 0)
601
 
  {
602
 
    ACE_TRY_NEW_ENV
603
 
    {
604
 
      result = app.run ();
605
 
    }
606
 
    ACE_CATCHANY
607
 
    {
608
 
      ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
609
 
                           "FT_Client::main\t\n");
610
 
      result = -1;
611
 
    }
612
 
    ACE_ENDTRY;
613
 
  }
614
 
  return result;
615
 
}
616
 
 
617
 
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
618
 
  template class ACE_Vector<ACE_CString>;
619
 
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
620
 
# pragma ACE_Vector<ACE_CString>
621
 
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */