| 116 | |
| 117 | |
| 118 | void Writer::set_message (Messenger::Message& message, int count) |
| 119 | { |
| 120 | message.count = count; |
| 121 | switch (count) |
| 122 | { |
| 123 | case 9: |
| 124 | { |
| 125 | CORBA::ULong len = static_cast<CORBA::ULong>(ACE_OS::strlen(wcharseq)); |
| 126 | message.bounded_wchar_seq = BoundedWCharSeq (len + 1, wcharseq); |
| 127 | } |
| 128 | break; |
| 129 | case 8: |
| 130 | { |
| 131 | CORBA::ULong len = static_cast<CORBA::ULong>(ACE_OS::strlen(charseq)); |
| 132 | message.bounded_char_seq = BoundedCharSeq (len + 1, charseq); |
| 133 | } |
| 134 | break; |
| 135 | case 7: |
| 136 | { |
| 137 | message.wstring_seq.length (5); |
| 138 | message.wstring_seq[4] = CORBA::wstring_dup (wstrseq); |
| 139 | } |
| 140 | break; |
| 141 | case 6: |
| 142 | { |
| 143 | message.string_seq.length (5); |
| 144 | message.string_seq[4] = CORBA::string_dup (strseq); |
| 145 | } |
| 146 | break; |
| 147 | case 5: |
| 148 | { |
| 149 | CORBA::ULong len = static_cast<CORBA::ULong>(ACE_OS::strlen(wcharseq)); |
| 150 | message.wchar_seq.replace (len + 1, len + 1, wcharseq); |
| 151 | } |
| 152 | break; |
| 153 | case 4: |
| 154 | { |
| 155 | CORBA::ULong len = static_cast<CORBA::ULong>(ACE_OS::strlen(charseq)); |
| 156 | message.char_seq.replace (len + 1, len + 1, charseq); |
| 157 | } |
| 158 | break; |
| 159 | case 3: |
| 160 | { |
| 161 | message.wstr = CORBA::wstring_dup (wstr); |
| 162 | } |
| 163 | break; |
| 164 | case 2: |
| 165 | { |
| 166 | message.str = CORBA::string_dup (str); |
| 167 | } |
| 168 | break; |
| 169 | case 1: |
| 170 | { |
| 171 | message.wch = L'B'; |
| 172 | } |
| 173 | break; |
| 174 | case 0: |
| 175 | { |
nothing calls this directly
no test coverage detected