diff options
author | chai <chaifix@163.com> | 2019-08-08 08:56:51 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-08 08:56:51 +0800 |
commit | 6a065c913e9308cc72e1ad0723b6167048f439b6 (patch) | |
tree | 58cb4f28113949469c56584e32a510713ddbc2c1 /Source/modules/asura-base/FileSystem/FileData.h | |
parent | 0c391fdbce5a079cf03e483eb6174dd47806163d (diff) |
*misc
Diffstat (limited to 'Source/modules/asura-base/FileSystem/FileData.h')
-rw-r--r-- | Source/modules/asura-base/FileSystem/FileData.h | 84 |
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 |