Panda3D
 All Classes Functions Variables Enumerations
virtualFileMountAndroidAsset.I
1 // Filename: virtualFileMountAndroidAsset.cxx
2 // Created by: rdb (21Jan13)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: VirtualFileMountAndroidAsset::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 VirtualFileMountAndroidAsset::
22 VirtualFileMountAndroidAsset(AAssetManager *mgr, const string &apk_path) :
23  _asset_mgr(mgr), _apk_path(apk_path)
24 {
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: VirtualFileMountAndroidAsset::AssetStream::Constructor
29 // Access: Public
30 // Description:
31 ////////////////////////////////////////////////////////////////////
32 INLINE VirtualFileMountAndroidAsset::AssetStream::
33 AssetStream(AAsset *asset) :
34  istream(new VirtualFileMountAndroidAsset::AssetStreamBuf(asset)) {
35 }