next up previous 264
Next: astHasColumn - Returns a flag indicating if a column is present in a Table
Up: AST Function Descriptions
Previous: astGrismMap - Create a GrismMap


astHasAttribute - Test if an Object has a named attribute

Description:
This function returns a boolean result (0 or 1) to indicate whether the supplied Object has an attribute with the supplied name.
Synopsis:
int astHasAttribute( AstObject $*$this, const char $*$attrib )
Parameters:
this
Pointer to the first Object.
attrib
Pointer to a string holding the name of the attribute to be tested.
Class Applicability:
Object
This function applies to all Objects.
Returned Value:
astHasAttribute()
One if the Object has the named attribute, otherwise zero.
Notes:
  • A value of zero will be returned if this function is invoked with the AST error status set, or if it should fail for any reason.


next up previous 264
Next: astHasColumn - Returns a flag indicating if a column is present in a Table
Up: AST Function Descriptions
Previous: astGrismMap - Create a GrismMap

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 211
R.F. Warren-Smith & D.S. Berry
24th May 2011
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2009 Science \& Technology Facilities Council