mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
36 lines
794 B
C++
36 lines
794 B
C++
// RING RACERS
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2023 by James Robert Roman
|
|
//
|
|
// This program is free software distributed under the
|
|
// terms of the GNU General Public License, version 2.
|
|
// See the 'LICENSE' file for more details.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef __SRB2_MEDIA_CFILE_HPP__
|
|
#define __SRB2_MEDIA_CFILE_HPP__
|
|
|
|
#include <cstdio>
|
|
#include <string>
|
|
|
|
namespace srb2::media
|
|
{
|
|
|
|
class CFile
|
|
{
|
|
public:
|
|
CFile(const std::string file_name);
|
|
~CFile();
|
|
|
|
operator std::FILE*() const { return file_; }
|
|
|
|
const char* name() const { return name_.c_str(); }
|
|
|
|
private:
|
|
std::string name_;
|
|
std::FILE* file_;
|
|
};
|
|
|
|
}; // namespace srb2::media
|
|
|
|
#endif // __SRB2_MEDIA_CFILE_HPP__
|