DYT/Tool/3rdParty_x64/include/1.5/dom/domFx_include.h

102 lines
2.8 KiB
C
Raw Permalink Normal View History

2024-11-22 15:19:31 +00:00
#ifndef __dom150Fx_include_h__
#define __dom150Fx_include_h__
#include <dae/daeDocument.h>
#include <1.5/dom/domTypes.h>
#include <1.5/dom/domElements.h>
class DAE;
namespace ColladaDOM150 {
/**
* The include element is used to import source code or precompiled binary
* shaders into the FX Runtime by referencing an external resource.
*/
class domFx_include : public daeElement
{
public:
virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_INCLUDE; }
static daeInt ID() { return 180; }
virtual daeInt typeID() const { return ID(); }
protected: // Attributes
/**
* The sid attribute is a text string value containing the sub-identifier
* of this element. This value must be unique within the scope of the parent
* element. Optional attribute.
*/
domSid attrSid;
/**
* The url attribute refers to resource. This may refer to a local resource
* using a relative URL fragment identifier that begins with the "#" character.
* The url attribute may refer to an external resource using an absolute
* or relative URL.
*/
xsAnyURI attrUrl;
public: //Accessors and Mutators
/**
* Gets the sid attribute.
* @return Returns a domSid of the sid attribute.
*/
domSid getSid() const { return attrSid; }
/**
* Sets the sid attribute.
* @param atSid The new value for the sid attribute.
*/
void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid;}
/**
* Gets the url attribute.
* @return Returns a xsAnyURI reference of the url attribute.
*/
xsAnyURI &getUrl() { return attrUrl; }
/**
* Gets the url attribute.
* @return Returns a constant xsAnyURI reference of the url attribute.
*/
const xsAnyURI &getUrl() const { return attrUrl; }
/**
* Sets the url attribute.
* @param atUrl The new value for the url attribute.
*/
void setUrl( const xsAnyURI &atUrl ) { attrUrl = atUrl; }
/**
* Sets the url attribute.
* @param atUrl The new value for the url attribute.
*/
void setUrl( xsString atUrl ) { attrUrl = atUrl; }
protected:
/**
* Constructor
*/
domFx_include(DAE& dae) : daeElement(dae), attrSid(), attrUrl(dae, *this) {}
/**
* Destructor
*/
virtual ~domFx_include() {}
/**
* Overloaded assignment operator
*/
virtual domFx_include &operator=( const domFx_include &cpy ) { (void)cpy; return *this; }
public: // STATIC METHODS
/**
* Creates an instance of this class and returns a daeElementRef referencing it.
* @return a daeElementRef referencing an instance of this object.
*/
static DLLSPEC daeElementRef create(DAE& dae);
/**
* Creates a daeMetaElement object that describes this element in the meta object reflection framework.
* If a daeMetaElement already exists it will return that instead of creating a new one.
* @return A daeMetaElement describing this COLLADA element.
*/
static DLLSPEC daeMetaElement* registerElement(DAE& dae);
};
} // ColladaDOM150
#endif