> >What about a constraint matching ads that have only an A attribute.
> >Can I do that without knowing about all possible attributes that
> >might be in an ad?
>
> There is no way to do that in the language--you'd have to have a code
> solution for that. It *might* be possible to write a user-defined
> function in the C++ implementation to do that, but I'm not sure off
> the top of my head.
I would suggest a user defined function that returns the number of
attributes in a ClassAd. It would have to iterate through the attributes
in the ClassAd and tally the number, but this could be implemented without
any changes to the ClassAd API.
- Nick
|