PSID.h
/*
* This file is part of libsidplayfp, a SID player engine.
*
* Copyright 2012-2014 Leandro Nini <drfiemost@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef PSID_H
#define PSID_H
#include <stdint.h>
#include "SidTuneBase.h"
#include "sidplayfp/SidTune.h"
#include "sidcxx11.h"
namespace libsidplayfp
{
struct psidHeader;
class PSID final : public SidTuneBase
{
private:
char m_md5[SidTune::MD5_LENGTH+1];
private:
void tryLoad(const psidHeader &pHeader);
static void readHeader(const buffer_t &dataBuf, psidHeader &hdr);
protected:
PSID() {}
public:
~PSID() override = default;
static SidTuneBase* load(buffer_t& dataBuf);
const char *createMD5(char *md5) override;
const char *createMD5New(char *md5) override;
private:
// prevent copying
PSID(const PSID&) = delete;
PSID& operator=(PSID&) = delete;
};
}
#endif // PSID_H
libsidplayfp::PSID::createMD5
const char * createMD5(char *md5) override
Definition PSID.cpp:362
libsidplayfp::PSID::load
static SidTuneBase * load(buffer_t &dataBuf)
Definition PSID.cpp:146
libsidplayfp::PSID::createMD5New
const char * createMD5New(char *md5) override
Definition PSID.cpp:432
libsidplayfp::psidHeader
Definition PSID.cpp:51