blip  0.1
BinaryObject.hpp
Go to the documentation of this file.
1 #ifndef __blip_BinaryObject_hpp
2 #define __blip_BinaryObject_hpp
3 
4 #include <blip/Blip.hpp>
5 
6 #include <commonc++/Flags.h++>
7 #include <commonc++/String.h++>
8 
9 struct AObbInfo;
10 
11 namespace blip {
12 
20 {
21  public:
22 
25  BinaryObject(const ccxx::String& filename);
26 
28  ~BinaryObject();
29 
31  inline bool isValid() const
32  { return(_info != NULL); }
33 
35  inline ccxx::String getFilename()
36  { return(_filename); }
37 
39  ccxx::String getPackageName() const;
40 
42  int32_t getVersion() const;
43 
45  const ccxx::Flags<int32_t> getFlags() const;
46 
47  private:
48 
49  ccxx::String _filename;
50  AObbInfo *_info;
51 
52  CCXX_COPY_DECLS(BinaryObject);
53 };
54 
55 } // namespace blip
56 
57 #endif // __blip_BinaryObject_hpp
const ccxx::Flags< int32_t > getFlags() const
Get the flags for this BinaryObject.
Definition: BinaryObject.cpp:51
ccxx::String getFilename()
Get the filename for this BinaryObject.
Definition: BinaryObject.hpp:35
~BinaryObject()
Destructor.
Definition: BinaryObject.cpp:26
ccxx::String getPackageName() const
Get the package name for this BinaryObject.
Definition: BinaryObject.cpp:34
An Android Opaque Binary Blob (OBB) object.
Definition: BinaryObject.hpp:19
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition: AccelerometerSensorEvent.cpp:3
BinaryObject(const ccxx::String &filename)
Construct a new BinaryObject for the file with the given filename.
Definition: BinaryObject.cpp:16
int32_t getVersion() const
Get the version number for this BinaryObject.
Definition: BinaryObject.cpp:43
bool isValid() const
Test if the BinaryObject is valid.
Definition: BinaryObject.hpp:31