summaryrefslogtreecommitdiff
path: root/Source/modules/asura-base/FileSystem/FileData.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/modules/asura-base/FileSystem/FileData.h')
-rw-r--r--Source/modules/asura-base/FileSystem/FileData.h84
1 files changed, 41 insertions, 43 deletions
diff --git a/Source/modules/asura-base/FileSystem/FileData.h b/Source/modules/asura-base/FileSystem/FileData.h
index d0acd26..e79d42c 100644
--- a/Source/modules/asura-base/FileSystem/FileData.h
+++ b/Source/modules/asura-base/FileSystem/FileData.h
@@ -7,63 +7,61 @@
#include "DataBuffer.h"
-namespace AsuraEngine
-{
- namespace FileSystem
- {
+namespace_begin(AsuraEngine)
+namespace_begin(FileSystem)
- class Filesystem;
+class Filesystem;
- ///
- /// filesystemֱӶȡļʱFileDataļݺϢFilesystem
- ///
- class FileData ASURA_FINAL
- : public AEScripting::Portable<FileData>
- {
- public:
+///
+/// filesystemֱӶȡļʱFileDataļݺϢFilesystem
+///
+class FileData ASURA_FINAL
+ : public AEScripting::Portable<FileData>
+{
+public:
- LUAX_DECL_FACTORY(FileData);
+ LUAX_DECL_FACTORY(FileData);
- ~FileData();
+ ~FileData();
- ///
- /// ļݣͨDatabufferݺʹСڲӿڶData bufferΪҲdata buffer
- ///
- DataBuffer* GetDataBuffer();
+ ///
+ /// ļݣͨDatabufferݺʹСڲӿڶData bufferΪҲdata buffer
+ ///
+ DataBuffer* GetDataBuffer();
- const std::string& GetFileName();
- const std::string& GetExtension();
- const std::string& GetName();
+ const std::string& GetFileName();
+ const std::string& GetExtension();
+ const std::string& GetName();
- private:
+private:
- friend class FileManager;
+ friend class FileManager;
- FileData(const std::string& name);
+ FileData(const std::string& name);
- ///
- /// data buffer
- ///
- void BindData(ASURA_MOVE DataBuffer* buffer);
+ ///
+ /// data buffer
+ ///
+ void BindData(ASURA_MOVE DataBuffer* buffer);
- ///
- /// Data bufferfiledataʱ٣luaüΪ0ʱluaGC١mDataʱһԱá
- ///
- ASURA_REF DataBuffer* m_Data;
- Luax::LuaxMemberRef m_DataRef;
+ ///
+ /// Data bufferfiledataʱ٣luaüΪ0ʱluaGC١mDataʱһԱá
+ ///
+ ASURA_REF DataBuffer* m_Data;
+ Luax::LuaxMemberRef m_DataRef;
- std::string m_FileName; ///< չļ
- std::string m_Extension; ///< չ
- std::string m_Name; ///< ͺ׺ļ
+ std::string m_FileName; ///< չļ
+ std::string m_Extension; ///< չ
+ std::string m_Name; ///< ͺ׺ļ
- LUAX_DECL_METHOD(_GetDataBuffer);
- LUAX_DECL_METHOD(_GetFileName);
- LUAX_DECL_METHOD(_GetExtension);
- LUAX_DECL_METHOD(_GetName);
+ LUAX_DECL_METHOD(_GetDataBuffer);
+ LUAX_DECL_METHOD(_GetFileName);
+ LUAX_DECL_METHOD(_GetExtension);
+ LUAX_DECL_METHOD(_GetName);
- };
+};
- }
-}
+namespace_end
+namespace_end
#endif \ No newline at end of file