x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
daeIOPlugin.h - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\DarkPuzzle\libs\bullet_sdk\Extras\COLLADA_DOM\include\dae\daeIOPlugin.h
旋转
特效
属性
历史版本
/* * Copyright 2006 Sony Computer Entertainment Inc. * * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the License at: * http://research.scea.com/scea_shared_source_license.html * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing permissions and limitations under the * License. */ #ifndef __DAE_IOPLUGIN__ #define __DAE_IOPLUGIN__ #include
class daeDatabase; class daeMetaElement; class daeURI; class daeDocument; /** * The @c daeIOPlugin class provides the input/output plugin interface, which is * the interface between the COLLADA runtime and the backend storage. A native * COLLADA XML plugin implementation is provided along with this interface. */ class daeIOPlugin { public: /** * Destructor */ virtual ~daeIOPlugin() {} /** * Sets the top meta object. * Called by @c dae::setIOPlugin() when the IO plugin changes. It passes to this function the * top meta object, which is the root of a * hierarchy of @c daeMetaElement objects. This top meta object is capable of creating * any of the root objects in the DOM tree. * @param topMeta Top meta object to use to create objects to fill the database. * @return Returns DAE_OK if successful, otherwise returns a negative value defined in daeError.h. */ virtual DLLSPEC daeInt setMeta(daeMetaElement *topMeta) = 0; /** @name Database setup */ //@{ /** * Sets the database to use. * All @c daeIOPlugins use the same interface to the @c daeDatabase, * @c setDatabase() tells the @c daeIOPlugin which @c daeDatabase object it should use * for storage and queries. * @param database Database to set. */ virtual DLLSPEC void setDatabase(daeDatabase* database) = 0; //@} /** @name Operations */ //@{ /** * Imports content into the database from an input. * The input can be a file, a database or another runtime. * @param uri the URI of the COLLADA document to load, not all plugins accept all types of URIs, * check the documentation for the IO plugin you are using. * @param docBuffer A string containing the text of the document to load. This is an optional attribute * and should only be used if the document has already been loaded into memory. * @return Returns DAE_OK if successfully loaded, otherwise returns a negative value defined in daeError.h. * @see @c daeInterface::load(). */ virtual DLLSPEC daeInt read(daeURI& uri, daeString docBuffer) = 0; /** @name Operations */ //@{ /** * Writes a specific document to an output. * @param name URI to write the document to, not all IO plugins support all types of URIs * check the documentation for the IO plugin you are using. * @param document Pointer to the document that we're going to write out. * @param replace True if write should overwrite an existing file. False otherwise. * @return Returns DAE_OK if success, a negative value defined in daeError.h otherwise. * @see @c daeInterface::saveAS() */ virtual DLLSPEC daeInt write(daeURI *name, daeDocument *document, daeBool replace) = 0; //@} /** @name Load/Save Progress */ //@{ /** * Gets the progress of @c load() operation. * This function can be used from another thread to check the progress of a @c load() * operation. The user can update a progress bar
bytesParsed/totalBytes
gives the * percentage of progress of the operation. * @param bytesParsed Pointer to an integer that receives the number of bytes already * consumed from the file, can be NULL if the user don't want to retrieve this information. * @param lineNumber Pointer to an integer that receives the number of lines read so far, * can be NULL. * @param totalBytes Pointer to an integer that receives the total number of bytes in the * file currently beeing loaded, can be NULL. * @param reset Indicates whether to reset the counters. A value of false is the default behaviour * that fits most usage. Set it to true to reset * the
bytesParsed
and
lineNumber
counters. The system resets the counter at the beginning of * each file. */ virtual DLLSPEC void getProgress(daeInt* bytesParsed, daeInt* lineNumber, daeInt* totalBytes, daeBool reset = false ) = 0; //@} }; #endif // __DAE_IOPLUGIN__
daeIOPlugin.h
网页地址
文件地址
上一页
16/33
下一页
下载
( 4 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.