aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/fldefs_hdr.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-04-20 02:36:20 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-04-20 02:36:20 +0000
commit8248ce3d66a19f77ffe10ded4b922cf0606f47a4 (patch)
treeb94d6a69e6b481ec0da134fe42bce488cb329b9d /externals/grill/flext/source/fldefs_hdr.h
parent0aac9d7803bc367ec22ed9df292d8a71d6013b55 (diff)
""
svn path=/trunk/; revision=579
Diffstat (limited to 'externals/grill/flext/source/fldefs_hdr.h')
-rw-r--r--externals/grill/flext/source/fldefs_hdr.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/externals/grill/flext/source/fldefs_hdr.h b/externals/grill/flext/source/fldefs_hdr.h
new file mode 100644
index 00000000..99e15872
--- /dev/null
+++ b/externals/grill/flext/source/fldefs_hdr.h
@@ -0,0 +1,53 @@
+/*
+
+flext - C++ layer for Max/MSP and pd (pure data) externals
+
+Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net)
+For information on usage and redistribution, and for a DISCLAIMER OF ALL
+WARRANTIES, see the file, "license.txt," in this distribution.
+
+*/
+
+/*! \file fldefs_hdr.h
+ \brief This file contains all #defines for actual usage
+
+*/
+
+#ifndef __FLEXT_DEFS_HEADER_H
+#define __FLEXT_DEFS_HEADER_H
+
+
+/*! \defgroup FLEXT_D_HEADER Flext class header
+ \note One (and only one!) of these definitions is compulsory for the class declaration.
+ \note It has to be placed somewhere in the class definition (not necessarily in a public section).
+
+ @{
+*/
+
+/*! \brief Plain flext class header
+ \param NEW_CLASS name of the current C++ class
+ \param PARENT_CLASS name of the base C++ class (e.g. flext_base or flext_dsp)
+*/
+#define FLEXT_HEADER(NEW_CLASS,PARENT_CLASS) \
+\
+FLEXT_REALHDR(NEW_CLASS, PARENT_CLASS)
+
+/*! \brief Flext class header with setup function
+ \param NEW_CLASS name of the current C++ class
+ \param PARENT_CLASS name of the base C++ class (e.g. flext_base or flext_dsp)
+ \param SETUPFUN setup function, of type "void (*setupfn)(t_class *)"
+
+ The setup function is called after class creation. It corresponds to the
+ original PD "[object]_setup" function, apart from the
+ fact that all necessary class initializations have already been taken care of by flext.
+ The setup function can e.g. be used for a message to the console upon first creation of an object.
+*/
+#define FLEXT_HEADER_S(NEW_CLASS, PARENT_CLASS, SETUPFUN)\
+\
+FLEXT_REALHDR_S(NEW_CLASS, PARENT_CLASS, SETUPFUN)
+
+
+//! @} FLEXT_D_HEADER
+
+
+#endif