omx_classmagic.h File Reference

Go to the source code of this file.

Defines

#define CLASS(a)
#define DERIVEDCLASS(a, b)
#define ENDCLASS(a)   a##_FIELDS };


Detailed Description

This file contains class handling helper macros It is left as an exercise to the reader how they do the magic (FIXME)

Usage Rules: 1) include this file 2) if your don't inherit, start your class with CLASS(classname) 3) if you inherit something, start your class with DERIVEDCLASS(classname, inheritedclassname) 4) end your class with ENDCLASS(classname) 5) define your class variables with a define classname_FIELDS inheritedclassname_FIELDS inside your class and always add a backslash at the end of line (except last) 6) if you want to use doxygen, use C-style comments inside the define, and enable macro expansion in doxyconf and predefine DOXYGEN_PREPROCESSING there, etc.

See examples at the end of this file (in if 0 block)

Copyright (C) 2007 STMicroelectronics Copyright (C) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

$Date$ Revision $Rev$ Author $Author$

Definition in file omx_classmagic.h.


Define Documentation

#define CLASS (  ) 

Value:

typedef struct a a; \
 struct a {

Definition at line 52 of file omx_classmagic.h.

#define DERIVEDCLASS ( a,
 ) 

Value:

typedef struct a a; \
 struct a {

Definition at line 54 of file omx_classmagic.h.

#define ENDCLASS (  )     a##_FIELDS };

Definition at line 56 of file omx_classmagic.h.


Generated for OpenMAX Bellagio rel. 0.3.5-svn by  doxygen 1.5.1
SourceForge.net Logo