parse the command line arguments
| 70 | |
| 71 | /// parse the command line arguments |
| 72 | int parse_args(int argc, ACE_TCHAR *argv[]) |
| 73 | { |
| 74 | |
| 75 | u_long mask = ACE_LOG_MSG->priority_mask(ACE_Log_Msg::PROCESS); |
| 76 | ACE_LOG_MSG->priority_mask(mask | LM_TRACE | LM_DEBUG, ACE_Log_Msg::PROCESS); |
| 77 | ACE_Arg_Shifter arg_shifter(argc, argv); |
| 78 | |
| 79 | while (arg_shifter.is_anything_left()) |
| 80 | { |
| 81 | // options: |
| 82 | // -n max_samples_per_instance defaults to INFINITE |
| 83 | // -d history.depth defaults to 1 |
| 84 | // -z verbose transport debug |
| 85 | |
| 86 | if (arg_shifter.cur_arg_strncasecmp(ACE_TEXT("-z")) == 0) |
| 87 | { |
| 88 | TURN_ON_VERBOSE_DEBUG; |
| 89 | arg_shifter.consume_arg(); |
| 90 | } |
| 91 | else |
| 92 | { |
| 93 | arg_shifter.ignore_arg (); |
| 94 | } |
| 95 | } |
| 96 | // Indicates successful parsing of the command line |
| 97 | return 0; |
| 98 | } |
| 99 | |
| 100 | void check_read_status(DDS::ReturnCode_t status, |
| 101 | const Test::SimpleSeq& data, |