| 212 | } |
| 213 | |
| 214 | void ParticleReader::particleAttributes( std::vector<std::string> &names ) |
| 215 | { |
| 216 | vector<string> allNames; |
| 217 | attributeNames( allNames ); |
| 218 | |
| 219 | ConstStringVectorDataPtr d = m_attributesParameter->getTypedValidatedValue<StringVectorData>(); |
| 220 | if( !d->readable().size() ) |
| 221 | { |
| 222 | names = allNames; |
| 223 | return; |
| 224 | } |
| 225 | |
| 226 | names.clear(); |
| 227 | for( vector<string>::const_iterator it = d->readable().begin(); it!=d->readable().end(); it++ ) |
| 228 | { |
| 229 | if( find( allNames.begin(), allNames.end(), *it )!=allNames.end() ) |
| 230 | { |
| 231 | names.push_back( *it ); |
| 232 | } |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | ParticleReader::RealType ParticleReader::realType() const |
| 237 | { |