| | 160 | void |
| | 161 | JPEG_VideoViewer_i::query (CF::Properties & configProperties) |
| | 162 | throw (CORBA::SystemException, CF::UnknownProperties) |
| | 163 | { |
| | 164 | // for queries of zero length, return all id/value pairs in propertySet |
| | 165 | if (configProperties.length () == 0) |
| | 166 | { |
| | 167 | configProperties.length (propertySet.length ()); |
| | 168 | for (unsigned int i = 0; i < propertySet.length (); i++) |
| | 169 | { |
| | 170 | configProperties[i].id = CORBA::string_dup (propertySet[i].id); |
| | 171 | configProperties[i].value = propertySet[i].value; |
| | 172 | } |
| | 173 | |
| | 174 | return ; |
| | 175 | } |
| | 176 | else { |
| | 177 | for (unsigned int i = 0; i < configProperties.length(); i++) { |
| | 178 | for (unsigned int j=0; j < propertySet.length(); j++) { |
| | 179 | if ( strcmp(configProperties[i].id, propertySet[i].id) == 0 ){ |
| | 180 | configProperties[i].value = propertySet[i].value; |
| | 181 | } |
| | 182 | } |
| | 183 | } |
| | 184 | } |
| | 185 | } |
| | 186 | |
| | 187 | |
| | 188 | |
| | 189 | |