Public Member Functions | |
| HRESULT | SaveAllowed ([out, retval] RtBOOL *pbVal) |
| HRESULT | LoadNode ([in] BSTR bstrFileName,[out] IRsNode **ppNode) |
| HRESULT | LoadObject ([in] IRsFileHandle *pRsFileHandle,[out] IRsObject **ppObject) |
| HRESULT | SaveNode ([in] BSTR bstrFileName,[in] BSTR bstrAuthor,[in] BSTR bstrDescr,[in] IRdBitmap *pThumbnail,[in] IRsNode *pNode) |
| HRESULT | SaveObject ([in] IRsFileHandle *pRsFileHandle,[in] IRsObject *pObject) |
| HRESULT | LoadPreobject ([in] BSTR bszFileName,[out] IRsNode **ppNode) |
| HRESULT | LoadNodeFromResource ([in] HINSTANCE hInstance,[in]RtUlong dwResourceId,[out] IRsNode **ppNode) |
| HRESULT | SaveHistory ([in] BSTR bstrFileName,[in] BSTR bstrAuthor,[in] BSTR bstrDescr,[in] IRdBitmap *pThumbnail,[in] RtBool fClearDirty) |
| HRESULT | LoadHistory ([in] BSTR bstrFileName) |
| HRESULT | SaveSystem ([in] BSTR bstrFileName,[in] BSTR bstrAuthor,[in] BSTR bstrDescr,[in] IRdBitmap *pThumbnail,[in] RtBool fClearDirty) |
| HRESULT | LoadSystem ([in] BSTR bstrFileName) |
| HRESULT | CreateHeaderChunk ([in] IID idType,[in] BSTR bstrAuthor,[in] BSTR bstrDescr,[out, retval] IRsFileChunk **ppChunk) |
| HRESULT | LoadObjListFromStream ([in] IStream *pStream,[out] IRsObjectList **ppObjList) |
| HRESULT | SaveObjListToStream ([in] IStream *pStream,[in] IRsObjectList *pObjList) |
| HRESULT | LoadPreobjectShader ([in] BSTR bszFileName,[out] IRsNode **ppNode) |
| HRESULT | WriteSystemChunk ([in] IRsFileHandle *pRsFileHandle) |
| HRESULT | ReadSystemChunk ([in] IRsFileHandle *pRsFileHandle,[out, retval] IRdChunkSystem **ppChunkSystem) |
| HRESULT | GetDefaultProducer ([out, retval] BSTR *pbstrProducer) |
| HRESULT | GetDefaultAuthor ([out, retval] BSTR *pbstrAuthor) |
| HRESULT IRfFileIOHelper::SaveAllowed | ( | [out, retval] RtBOOL * | pbVal | ) |
Asks runner for RUN_FEATURE_LIM_SAVE. The feature allows you to decide if you enable or disable serialization for your objects.
| pbVal | [out, retval] Returns if save is allowed. |
| HRESULT IRfFileIOHelper::LoadNode | ( | [in] BSTR | bstrFileName, | |
| [out] IRsNode ** | ppNode | |||
| ) |
Load node from specified file.
| bstrFileName | [in] - Path or name of the file. | |
| ppNode | [out] Returns loaded node. |
| HRESULT IRfFileIOHelper::LoadObject | ( | [in] IRsFileHandle * | pRsFileHandle, | |
| [out] IRsObject ** | ppObject | |||
| ) |
Load object from specified file handle. The object is loaded from first RsObj chunk.
| pRsFileHandle | [in] File handle. | |
| ppObject | [out] Returns loaded object. |
| HRESULT IRfFileIOHelper::SaveNode | ( | [in] BSTR | bstrFileName, | |
| [in] BSTR | bstrAuthor, | |||
| [in] BSTR | bstrDescr, | |||
| [in] IRdBitmap * | pThumbnail, | |||
| [in] IRsNode * | pNode | |||
| ) |
Save node to specified file.
| bstrFileName | [in] - desired filename. | |
| bstrAuthor | [in] - author of the file. | |
| bstrDescr | [in] - file description. | |
| pThumbnail | [in] - thumbnail. | |
| pNode | [in] - Node to save. |
| HRESULT IRfFileIOHelper::SaveObject | ( | [in] IRsFileHandle * | pRsFileHandle, | |
| [in] IRsObject * | pObject | |||
| ) |
Save object to specified file handle as RsObj Chunk. If such chunk already exist, replace the first one.
| pRsFileHandle | [in] - File handle of the file where the object will be serialized. Use CreateRsFileHandle method of the IRpFileIOPck to create the file handle. | |
| pObject | [in] - Object to save. |
| HRESULT IRfFileIOHelper::LoadPreobject | ( | [in] BSTR | bszFileName, | |
| [out] IRsNode ** | ppNode | |||
| ) |
Load node from application pre-object directory.
| bstrFileName | [in] - File name. | |
| ppNode | [out] Returns loaded node. |
| HRESULT IRfFileIOHelper::LoadNodeFromResource | ( | [in] HINSTANCE | hInstance, | |
| [in] RtUlong | dwResourceId, | |||
| [out] IRsNode ** | ppNode | |||
| ) |
Load node from a resource.
| hInstance | [in] Module handle instance containing resource. | |
| dwResourceId | [in] Integer resource ID. | |
| ppNode | [out] Returns loaded node. |
| HRESULT IRfFileIOHelper::SaveHistory | ( | [in] BSTR | bstrFileName, | |
| [in] BSTR | bstrAuthor, | |||
| [in] BSTR | bstrDescr, | |||
| [in] IRdBitmap * | pThumbnail, | |||
| [in] RtBool | fClearDirty | |||
| ) |
Save history stack.
| bstrFileName | [in] - desired filename. | |
| bstrAuthor | [in] - author of the file. | |
| bstrDescr | [in] - file description. | |
| pThumbnail | [in] - thumbnail. | |
| fClearDirty | [in] - set to TRUE if the dirty flag should be cleared. |
| HRESULT IRfFileIOHelper::LoadHistory | ( | [in] BSTR | bstrFileName | ) |
Load and apply history stack.
| bstrFileName | [in] - desired filename. |
| HRESULT IRfFileIOHelper::SaveSystem | ( | [in] BSTR | bstrFileName, | |
| [in] BSTR | bstrAuthor, | |||
| [in] BSTR | bstrDescr, | |||
| [in] IRdBitmap * | pThumbnail, | |||
| [in] RtBool | fClearDirty | |||
| ) |
Save current system.
| bstrFileName | [in] - desired filename. | |
| bstrAuthor | [in] - author of the file. | |
| bstrDescr | [in] - file description. | |
| pThumbnail | [in] - thumbnail. | |
| fClearDirty | [in] - set to TRUE if the dirty flag should be cleared. |
| HRESULT IRfFileIOHelper::LoadSystem | ( | [in] BSTR | bstrFileName | ) |
Load and apply system settings.
| bstrFileName | [in] - desired filename. |
| HRESULT IRfFileIOHelper::CreateHeaderChunk | ( | [in] IID | idType, | |
| [in] BSTR | bstrAuthor, | |||
| [in] BSTR | bstrDescr, | |||
| [out, retval] IRsFileChunk ** | ppChunk | |||
| ) |
Create standard header chunk.
| idType | [in] - Type GUID of the stream/file (object, scene, ctx, ... | |
| bstrAuthor | [in] - Specify author. | |
| bstrDescr | [in] - Specify short text description. | |
| ppChunk | [out, retval] - Returns created header chunk. |
| HRESULT IRfFileIOHelper::LoadObjListFromStream | ( | [in] IStream * | pStream, | |
| [out] IRsObjectList ** | ppObjList | |||
| ) |
Load nodes list from a stream.
| pStream | [in] Specify stream from which you want to read. | |
| ppObjList | [out] Returns loaded objects list. |
| HRESULT IRfFileIOHelper::SaveObjListToStream | ( | [in] IStream * | pStream, | |
| [in] IRsObjectList * | pObjList | |||
| ) |
Save list of nodes into stream in one node session.
| pStream | [in] Specify stream to which the object list 'll be saved. | |
| pObjList | [in] The list of objects that will be saved into the stream. Allowed are nodes, commands and data objects. |
other - Standard HRESULT processing can be applied to the result.
| HRESULT IRfFileIOHelper::LoadPreobjectShader | ( | [in] BSTR | bszFileName, | |
| [out] IRsNode ** | ppNode | |||
| ) |
Load shader node from application pre-object/shaders directory.
| bstrFileName | [in] - File name. | |
| ppNode | [out] Returns loaded node. |
| HRESULT IRfFileIOHelper::WriteSystemChunk | ( | [in] IRsFileHandle * | pRsFileHandle | ) |
Save system chunk to given file handle. The system itself will be serialized when the file will be closed.
| pRsFileHandle | [in] - File handle. |
| HRESULT IRfFileIOHelper::ReadSystemChunk | ( | [in] IRsFileHandle * | pRsFileHandle, | |
| [out, retval] IRdChunkSystem ** | ppChunkSystem | |||
| ) |
Load system chunk.
| pRsFileHandle | [in] - File handle. | |
| ppChunkSystem | [out, retval] - Returns interface to system chunk. |
S_FALSE If the chunk was not found.
or other standard error.
| HRESULT IRfFileIOHelper::GetDefaultProducer | ( | [out, retval] BSTR * | pbstrProducer | ) |
Get default file producer name. The author is read from application registration.
| pbstrProducer | [out, retval] - Returns default producer name. |
| HRESULT IRfFileIOHelper::GetDefaultAuthor | ( | [out, retval] BSTR * | pbstrAuthor | ) |
Get default file author name. The author is read from application registration.
| pbstrAuthor | [out, retval] - Returns default author name. |
1.5.5