FBX C++ API Reference
fbxiobase.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2015 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_FILEIO_IO_BASE_H_
14 #define _FBXSDK_FILEIO_IO_BASE_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
18 #include <fbxsdk/core/fbxobject.h>
20 
21 #include <fbxsdk/fbxsdk_nsbegin.h>
22 
23 #define FBXSDK_IO_END_NODE_STR "_End"
24 
29 {
31 
32 public:
40  virtual bool Initialize(const char *pFileName, int pFileFormat=-1, FbxIOSettings* pIOSettings=NULL);
41 
45  virtual FbxString GetFileName();
46 
48  FbxStatus& GetStatus() { return mStatus; }
49 
50 /*****************************************************************************************************************************
51 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
52 *****************************************************************************************************************************/
53 #ifndef DOXYGEN_SHOULD_SKIP_THIS
54 protected:
55  virtual void Construct(const FbxObject* pFrom);
56 
57  int DetectReaderFileFormat(const char *pFileName);
58  int DetectWriterFileFormat(const char *pFileName);
59 
60  FbxStatus mStatus;
61  FbxString mFilename;
62 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
63 };
64 
65 #include <fbxsdk/fbxsdk_nsend.h>
66 
67 #endif /* _FBXSDK_FILEIO_IO_BASE_H_ */
#define FBXSDK_OBJECT_DECLARE(Class, Parent)
Macro used to declare a new class derived from FbxObject.
Definition: fbxobject.h:61
FBX SDK environment definition.
#define NULL
Definition: fbxarch.h:210
Utility class to manipulate strings.
Definition: fbxstring.h:66
This class facilitates the testing/reporting of errors.
Definition: fbxstatus.h:26
FbxIOSettings is a collection of properties, arranged as a tree, that can be used by FBX file readers...
Base class for FBX file importer and exporter.
Definition: fbxiobase.h:28
The base class of most FBX objects.
Definition: fbxobject.h:157
virtual void Construct(const FbxObject *pFrom)
Optional constructor override, automatically called by default constructor.
#define FBXSDK_DLL
Definition: fbxarch.h:173
FbxStatus & GetStatus()
Get the status object containing the success or failure state.
Definition: fbxiobase.h:48