diff options
Diffstat (limited to '1.4.0/dom/codeGen/1.4/tpl/tpl-elements.php')
-rw-r--r-- | 1.4.0/dom/codeGen/1.4/tpl/tpl-elements.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/1.4.0/dom/codeGen/1.4/tpl/tpl-elements.php b/1.4.0/dom/codeGen/1.4/tpl/tpl-elements.php new file mode 100644 index 0000000..f16d2af --- /dev/null +++ b/1.4.0/dom/codeGen/1.4/tpl/tpl-elements.php @@ -0,0 +1,31 @@ +<?php +/* +* Copyright 2006 Sony Computer Entertainment Inc. +* +* Licensed under the MIT Open Source License, for details please see license.txt or the website +* http://www.opensource.org/licenses/mit-license.php +* +*/ + +if ( $_globals['copyright'] ) { +print $_globals['copyright_text']; +} +?> +#ifndef __DOM_ELEMENTS_H__ +#define __DOM_ELEMENTS_H__ + +#include <<?= $_globals['prefix'] ?>/<?= $_globals['prefix'] ?>Types.h> + +<?php +//Base elements +foreach( $bag as $name => $meta ) { + $full_element_name = $_globals['prefix'] . ucfirst( $name ); + print "class " . $full_element_name . ";\n\n"; + print "typedef daeSmartRef<". $full_element_name ."> ". $full_element_name ."Ref;\n"; + print "typedef daeTArray<". $full_element_name ."Ref> ". $full_element_name ."_Array;\n\n"; +} + +?> + +#endif //__DOM_ELEMENTS_H__ + |