1 /*---------------------------------------------------------------------------*
2 
3 Copyright (C) 2013-2014 Nintendo. All rights reserved.
4 
5 These coded instructions, statements, and computer programs contain
6 proprietary information of Nintendo of America Inc. and/or Nintendo
7 Company Ltd., and are protected by Federal copyright law.  They may
8 not be disclosed to third parties or copied or duplicated in any form,
9 in whole or in part, without the prior written consent of Nintendo.
10 
11  *---------------------------------------------------------------------------*/
12 
13 #ifndef NN_EC_FILE_H_
14 #define NN_EC_FILE_H_
15 
16 #include <nn/ec/ec_Types.h>
17 
18 namespace nn { namespace ec {
19 
20 //! @addtogroup nn_ec_class
21 //! @{
22 
23 /*!
24 @brief Class for handling files.
25 */
26 class File : public RootObject, private NonCopyable<File>
27 {
28 public:
29     NN_EC_DECLARE_ACCESSOR;
30     NN_EC_DECLARE_IMPL;
31 
32 public:
33     /*!
34 @brief Constructor.
35     */
36     File();
37 
38     /*!
39 @brief Destructor.
40     */
41     virtual ~File();
42 
43     /*!
44 @brief Gets the data.
45 
46 @return Returns the data.
47     */
48     const void* GetData() const;
49 
50     /*!
51 @brief Gets the data size.
52 
53 @return Returns the data size.
54     */
55     size_t GetDataSize() const;
56 
57 protected:
58     //
59     NN_EC_IMPL;
60 };
61 
62 //! @}
63 
64 }} // namespace nn::ec
65 
66 #endif // NN_EC_FILE_H_
67