xbmc
XBTFReader.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "XBTF.h"
12 
13 #include <memory>
14 #include <stdint.h>
15 #include <string>
16 #include <vector>
17 
18 class CXBTFReader : public CXBTFBase
19 {
20 public:
21  CXBTFReader();
22  ~CXBTFReader() override;
23 
24  bool Open(const std::string& path);
25  bool IsOpen() const;
26  void Close();
27 
28  time_t GetLastModificationTimestamp() const;
29 
30  bool Load(const CXBTFFrame& frame, unsigned char* buffer) const;
31 
32 private:
33  std::string m_path;
34  FILE* m_file = nullptr;
35 };
36 
37 typedef std::shared_ptr<CXBTFReader> CXBTFReaderPtr;
Definition: XBTF.h:23
Definition: XBTF.h:90
Definition: XBTFReader.h:18