Home | History | Annotate | Download | only in dom
      1 /*
      2 * Copyright 2006 Sony Computer Entertainment Inc.
      3 *
      4 * Licensed under the MIT Open Source License, for details please see license.txt or the website
      5 * http://www.opensource.org/licenses/mit-license.php
      6 *
      7 */
      8 
      9 #include <dae.h>
     10 #include <dae/daeDom.h>
     11 #include <dom/domFx_samplerDEPTH_common.h>
     12 #include <dae/daeMetaCMPolicy.h>
     13 #include <dae/daeMetaSequence.h>
     14 #include <dae/daeMetaChoice.h>
     15 #include <dae/daeMetaGroup.h>
     16 #include <dae/daeMetaAny.h>
     17 #include <dae/daeMetaElementAttribute.h>
     18 
     19 daeElementRef
     20 domFx_samplerDEPTH_common::create(DAE& dae)
     21 {
     22 	domFx_samplerDEPTH_commonRef ref = new domFx_samplerDEPTH_common(dae);
     23 	return ref;
     24 }
     25 
     26 
     27 daeMetaElement *
     28 domFx_samplerDEPTH_common::registerElement(DAE& dae)
     29 {
     30 	daeMetaElement* meta = dae.getMeta(ID());
     31 	if ( meta != NULL ) return meta;
     32 
     33 	meta = new daeMetaElement(dae);
     34 	dae.setMeta(ID(), *meta);
     35 	meta->setName( "fx_samplerDEPTH_common" );
     36 	meta->registerClass(domFx_samplerDEPTH_common::create);
     37 
     38 	daeMetaCMPolicy *cm = NULL;
     39 	daeMetaElementAttribute *mea = NULL;
     40 	cm = new daeMetaSequence( meta, cm, 0, 1, 1 );
     41 
     42 	mea = new daeMetaElementAttribute( meta, cm, 0, 1, 1 );
     43 	mea->setName( "source" );
     44 	mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemSource) );
     45 	mea->setElementType( domFx_samplerDEPTH_common::domSource::registerElement(dae) );
     46 	cm->appendChild( mea );
     47 
     48 	mea = new daeMetaElementAttribute( meta, cm, 1, 0, 1 );
     49 	mea->setName( "wrap_s" );
     50 	mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemWrap_s) );
     51 	mea->setElementType( domFx_samplerDEPTH_common::domWrap_s::registerElement(dae) );
     52 	cm->appendChild( mea );
     53 
     54 	mea = new daeMetaElementAttribute( meta, cm, 2, 0, 1 );
     55 	mea->setName( "wrap_t" );
     56 	mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemWrap_t) );
     57 	mea->setElementType( domFx_samplerDEPTH_common::domWrap_t::registerElement(dae) );
     58 	cm->appendChild( mea );
     59 
     60 	mea = new daeMetaElementAttribute( meta, cm, 3, 0, 1 );
     61 	mea->setName( "minfilter" );
     62 	mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemMinfilter) );
     63 	mea->setElementType( domFx_samplerDEPTH_common::domMinfilter::registerElement(dae) );
     64 	cm->appendChild( mea );
     65 
     66 	mea = new daeMetaElementAttribute( meta, cm, 4, 0, 1 );
     67 	mea->setName( "magfilter" );
     68 	mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemMagfilter) );
     69 	mea->setElementType( domFx_samplerDEPTH_common::domMagfilter::registerElement(dae) );
     70 	cm->appendChild( mea );
     71 
     72 	mea = new daeMetaElementArrayAttribute( meta, cm, 5, 0, -1 );
     73 	mea->setName( "extra" );
     74 	mea->setOffset( daeOffsetOf(domFx_samplerDEPTH_common,elemExtra_array) );
     75 	mea->setElementType( domExtra::registerElement(dae) );
     76 	cm->appendChild( mea );
     77 
     78 	cm->setMaxOrdinal( 5 );
     79 	meta->setCMRoot( cm );
     80 
     81 	meta->setElementSize(sizeof(domFx_samplerDEPTH_common));
     82 	meta->validate();
     83 
     84 	return meta;
     85 }
     86 
     87 daeElementRef
     88 domFx_samplerDEPTH_common::domSource::create(DAE& dae)
     89 {
     90 	domFx_samplerDEPTH_common::domSourceRef ref = new domFx_samplerDEPTH_common::domSource(dae);
     91 	return ref;
     92 }
     93 
     94 
     95 daeMetaElement *
     96 domFx_samplerDEPTH_common::domSource::registerElement(DAE& dae)
     97 {
     98 	daeMetaElement* meta = dae.getMeta(ID());
     99 	if ( meta != NULL ) return meta;
    100 
    101 	meta = new daeMetaElement(dae);
    102 	dae.setMeta(ID(), *meta);
    103 	meta->setName( "source" );
    104 	meta->registerClass(domFx_samplerDEPTH_common::domSource::create);
    105 
    106 	meta->setIsInnerClass( true );
    107 	//	Add attribute: _value
    108 	{
    109 		daeMetaAttribute *ma = new daeMetaAttribute;
    110 		ma->setName( "_value" );
    111 		ma->setType( dae.getAtomicTypes().get("xsNCName"));
    112 		ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domSource , _value ));
    113 		ma->setContainer( meta );
    114 		meta->appendAttribute(ma);
    115 	}
    116 
    117 	meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domSource));
    118 	meta->validate();
    119 
    120 	return meta;
    121 }
    122 
    123 daeElementRef
    124 domFx_samplerDEPTH_common::domWrap_s::create(DAE& dae)
    125 {
    126 	domFx_samplerDEPTH_common::domWrap_sRef ref = new domFx_samplerDEPTH_common::domWrap_s(dae);
    127 	return ref;
    128 }
    129 
    130 
    131 daeMetaElement *
    132 domFx_samplerDEPTH_common::domWrap_s::registerElement(DAE& dae)
    133 {
    134 	daeMetaElement* meta = dae.getMeta(ID());
    135 	if ( meta != NULL ) return meta;
    136 
    137 	meta = new daeMetaElement(dae);
    138 	dae.setMeta(ID(), *meta);
    139 	meta->setName( "wrap_s" );
    140 	meta->registerClass(domFx_samplerDEPTH_common::domWrap_s::create);
    141 
    142 	meta->setIsInnerClass( true );
    143 	//	Add attribute: _value
    144 	{
    145 		daeMetaAttribute *ma = new daeMetaAttribute;
    146 		ma->setName( "_value" );
    147 		ma->setType( dae.getAtomicTypes().get("Fx_sampler_wrap_common"));
    148 		ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domWrap_s , _value ));
    149 		ma->setContainer( meta );
    150 		meta->appendAttribute(ma);
    151 	}
    152 
    153 	meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domWrap_s));
    154 	meta->validate();
    155 
    156 	return meta;
    157 }
    158 
    159 daeElementRef
    160 domFx_samplerDEPTH_common::domWrap_t::create(DAE& dae)
    161 {
    162 	domFx_samplerDEPTH_common::domWrap_tRef ref = new domFx_samplerDEPTH_common::domWrap_t(dae);
    163 	return ref;
    164 }
    165 
    166 
    167 daeMetaElement *
    168 domFx_samplerDEPTH_common::domWrap_t::registerElement(DAE& dae)
    169 {
    170 	daeMetaElement* meta = dae.getMeta(ID());
    171 	if ( meta != NULL ) return meta;
    172 
    173 	meta = new daeMetaElement(dae);
    174 	dae.setMeta(ID(), *meta);
    175 	meta->setName( "wrap_t" );
    176 	meta->registerClass(domFx_samplerDEPTH_common::domWrap_t::create);
    177 
    178 	meta->setIsInnerClass( true );
    179 	//	Add attribute: _value
    180 	{
    181 		daeMetaAttribute *ma = new daeMetaAttribute;
    182 		ma->setName( "_value" );
    183 		ma->setType( dae.getAtomicTypes().get("Fx_sampler_wrap_common"));
    184 		ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domWrap_t , _value ));
    185 		ma->setContainer( meta );
    186 		meta->appendAttribute(ma);
    187 	}
    188 
    189 	meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domWrap_t));
    190 	meta->validate();
    191 
    192 	return meta;
    193 }
    194 
    195 daeElementRef
    196 domFx_samplerDEPTH_common::domMinfilter::create(DAE& dae)
    197 {
    198 	domFx_samplerDEPTH_common::domMinfilterRef ref = new domFx_samplerDEPTH_common::domMinfilter(dae);
    199 	return ref;
    200 }
    201 
    202 
    203 daeMetaElement *
    204 domFx_samplerDEPTH_common::domMinfilter::registerElement(DAE& dae)
    205 {
    206 	daeMetaElement* meta = dae.getMeta(ID());
    207 	if ( meta != NULL ) return meta;
    208 
    209 	meta = new daeMetaElement(dae);
    210 	dae.setMeta(ID(), *meta);
    211 	meta->setName( "minfilter" );
    212 	meta->registerClass(domFx_samplerDEPTH_common::domMinfilter::create);
    213 
    214 	meta->setIsInnerClass( true );
    215 	//	Add attribute: _value
    216 	{
    217 		daeMetaAttribute *ma = new daeMetaAttribute;
    218 		ma->setName( "_value" );
    219 		ma->setType( dae.getAtomicTypes().get("Fx_sampler_filter_common"));
    220 		ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domMinfilter , _value ));
    221 		ma->setContainer( meta );
    222 		meta->appendAttribute(ma);
    223 	}
    224 
    225 	meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domMinfilter));
    226 	meta->validate();
    227 
    228 	return meta;
    229 }
    230 
    231 daeElementRef
    232 domFx_samplerDEPTH_common::domMagfilter::create(DAE& dae)
    233 {
    234 	domFx_samplerDEPTH_common::domMagfilterRef ref = new domFx_samplerDEPTH_common::domMagfilter(dae);
    235 	return ref;
    236 }
    237 
    238 
    239 daeMetaElement *
    240 domFx_samplerDEPTH_common::domMagfilter::registerElement(DAE& dae)
    241 {
    242 	daeMetaElement* meta = dae.getMeta(ID());
    243 	if ( meta != NULL ) return meta;
    244 
    245 	meta = new daeMetaElement(dae);
    246 	dae.setMeta(ID(), *meta);
    247 	meta->setName( "magfilter" );
    248 	meta->registerClass(domFx_samplerDEPTH_common::domMagfilter::create);
    249 
    250 	meta->setIsInnerClass( true );
    251 	//	Add attribute: _value
    252 	{
    253 		daeMetaAttribute *ma = new daeMetaAttribute;
    254 		ma->setName( "_value" );
    255 		ma->setType( dae.getAtomicTypes().get("Fx_sampler_filter_common"));
    256 		ma->setOffset( daeOffsetOf( domFx_samplerDEPTH_common::domMagfilter , _value ));
    257 		ma->setContainer( meta );
    258 		meta->appendAttribute(ma);
    259 	}
    260 
    261 	meta->setElementSize(sizeof(domFx_samplerDEPTH_common::domMagfilter));
    262 	meta->validate();
    263 
    264 	return meta;
    265 }
    266 
    267