Select Git revision
Resource.cpp
Forked from
einsteinathome / graphicsframework
221 commits behind the upstream repository.
-
Oliver Bock authoredOliver Bock authored
Resource.cpp 1.74 KiB
/***************************************************************************
* Copyright (C) 2008 by Oliver Bock *
* oliver.bock[AT]aei.mpg.de *
* *
* This file is part of Einstein@Home. *
* *
* Einstein@Home 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, version 2 of the License. *
* *
* Einstein@Home 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 Einstein@Home. If not, see <http://www.gnu.org/licenses/>. *
* *
***************************************************************************/
#include "Resource.h"
Resource::Resource(const string identifier, const vector<unsigned char>& data) : m_Data(data)
{
m_Identifier = identifier;
}
Resource::~Resource()
{
}
string Resource::identifier() const
{
return m_Identifier;
}
const vector<unsigned char>* Resource::data() const
{
return &m_Data;
}