You.i Engine
YiAssetVideo.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_ASSET_VIDEO_H_
3 #define _YI_ASSET_VIDEO_H_
4 
5 #include "asset/YiAsset.h"
6 #include "network/YiUrl.h"
7 
20 class CYIAssetVideo : public CYIAsset
21 {
22 public:
23  CYIAssetVideo();
24  CYIAssetVideo(const CYIString &path, PathType pathType = PathType::Relative);
25  virtual ~CYIAssetVideo();
26 
30  void SetUrl(const CYIString &path);
31 
35  void SetUrl(const CYIUrl &url);
36 
40  const CYIUrl &GetUrl() const;
41 
42 protected:
43  virtual std::pair<size_t, size_t> GetApproximateSize() const override;
44 
45 private:
46  CYIUrl m_url;
47 
49 };
50 
53 #endif // _YI_ASSET_VIDEO_H_
void SetUrl(const CYIString &path)
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
PathType
Definition: YiAsset.h:42
virtual std::pair< size_t, size_t > GetApproximateSize() const override
virtual ~CYIAssetVideo()
const CYIUrl & GetUrl() const
A class used to encapsulate an URL.
Definition: YiUrl.h:24
Base class for any asset. An asset provides functions for dynamically loading and unloading itself an...
Definition: YiAsset.h:32
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
Asset representing a video.
Definition: YiAssetVideo.h:20