diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-05-26 19:28:08 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-05-26 19:34:28 -0300 |
commit | 440715431fb1abae0a089eaeae76df0686558097 (patch) | |
tree | b8845cde3c24823a0037f0058aa4b3d2bfb4dc57 /tests/libsample/simplefile.h | |
parent | 666a4deb3be66237800145ba0ad9f894575f044d (diff) |
Fixed declaration of class SimpleFile.
Move FILE member to internal structor to avoid errors on compilation of
debian PPC.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libsample/simplefile.h')
-rw-r--r-- | tests/libsample/simplefile.h | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/tests/libsample/simplefile.h b/tests/libsample/simplefile.h index 67797e7d4..9f7d042a2 100644 --- a/tests/libsample/simplefile.h +++ b/tests/libsample/simplefile.h @@ -38,29 +38,16 @@ #include "libsamplemacros.h" #include <stdio.h> +class SimpleFile_p; + class LIBSAMPLE_API SimpleFile { public: - explicit SimpleFile(const char* filename) - : m_filename(filename), m_descriptor(0), m_size(0) - { - } - - ~SimpleFile() - { - this->close(); - } - - const char* filename() - { - return m_filename; - } - - long size() - { - return m_size; - } + explicit SimpleFile(const char* filename); + ~SimpleFile(); + const char* filename(); + long size(); bool open(); void close(); @@ -68,9 +55,7 @@ public: static bool exists(const char* filename); private: - const char* m_filename; - FILE* m_descriptor; - long m_size; + SimpleFile_p *p; }; #endif // SIMPLEFILE_H |