*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ifl/iflClassList (3)              
Title
Content
Arch
Section
 

Contents


iflClassList(3)	  Image	Format Library C++ Reference Manual    iflClassList(3)


NAME    [Toc]    [Back]

     iflClassList - class inheritance chain

INHERITS FROM    [Toc]    [Back]

     This is a base class

HEADER FILE    [Toc]    [Back]

     #include <ifl/iflClassList.h>

CLASS DESCRIPTION    [Toc]    [Back]

     iflClassList is used to statically	create a class inheritance chain; it's
     not setup to deal with multiple inheritance, just the "primary" base
     class.

   Usage    [Toc]    [Back]
     Put the iflClassListDeclare macro in the public section of	a class
     declaration derived from a	base class and the iflClassListImplementBase
     or	iflClassListImplementDerived macro in the implementation file. These
     macros will declare and implement the methods described below, thus
     allowing the class	hierarchy to be	interrogated.

     Refer to <il/ilLink.h> and	<il/ilImage.h> for examples of the use of
     these macros.

   Public methods added    [Toc]    [Back]
     The folling public	methods	are added to the invoking class	by the
     iflClassListImplementXXX macros:

     getClassName()

	  virtual char*	getClassName(int parentIdx=0)


	  This method specifies	the name of the	class for this object
	  instantiantion (or of	the nearest ancestor class that	registers
	  itself using this macro.) The	optional parentIdx argument allows the
	  name of one of the parent classes to be returned, the	values
	  specifies how	may levels of the class	hierarchy to traverse.

     getClassId()

	   virtual iflClassId getClassId()


	  This method returns the class	ID for this object instantiantion.

     derivesFrom()

	  virtual int derivesFrom(iflClassId classID)






									Page 1






iflClassList(3)	  Image	Format Library C++ Reference Manual    iflClassList(3)



	  This method returns TRUE if this object instantiantion derives from
	  the class indicated by classID.  This	classID	is formed using	the
	  iflClassID macro defined in ilTypes.h; e.g. "iflClassID(ilImage)"

   Protected methods added    [Toc]    [Back]
     The following protected method is added to	the invoking class by the
     iflClassListImplementXXX macros:

     getDefaultDescription()

	  virtual char*	getDefaultDescription()


	  This method returns the default description for this object
	  instantiantion. This is the string supplied in the
	  iflClassListImplement* macros.

CLASS MEMBER FUNCTION SUMMARY    [Toc]    [Back]

     Class lookup methods

	  int find(iflClassId classID)
	  char*	find(int parentIdx)

FUNCTION DESCRIPTIONS    [Toc]    [Back]

     find()

	  char*	find(int parentIdx)
	  int find(iflClassId classID)


	  This first version returns the name of the class, parentIdx levels
	  up in	the class list.	 The second versions returns TRUE if classID
	  is found in the class	list.


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
minherit OpenBSD control the inheritance of pages
minherit FreeBSD control the inheritance of pages
minherit NetBSD control the inheritance of pages
pthread_attr_setinheritsched IRIX thread scheduling inheritance attributes
vm_map_inherit FreeBSD set fork inheritance flags for a range within a map
BIO_next Tru64 BIO chain traversal
SSL_CTX_add_extra_chain_cert OpenBSD add certificate to chain
SSL_CTX_add_extra_chain_cert NetBSD add certificate to chain
SSL_CTX_add_extra_chain_cert Tru64 Add certificate to chain
BIO_find_type NetBSD BIO chain traversal
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service