You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
535 B
37 lines
535 B
10 years ago
|
// this file is autogenerated, do not modify!!!
|
||
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
#include <sstream>
|
||
|
#include <map>
|
||
|
|
||
|
namespace dev
|
||
|
{
|
||
|
namespace eth
|
||
|
{
|
||
|
|
||
|
class ${ETH_RESOURCE_NAME}
|
||
|
{
|
||
|
public:
|
||
|
${ETH_RESOURCE_NAME}()
|
||
|
{
|
||
|
${ETH_RESULT_DATA}
|
||
|
${ETH_RESULT_INIT}
|
||
|
}
|
||
|
|
||
|
std::string loadResourceAsString(std::string _name)
|
||
|
{
|
||
|
std::ostringstream bistream;
|
||
|
bistream.write(m_resources[_name], m_sizes[_name]);
|
||
|
return bistream.str();
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
std::map <std::string, const char*> m_resources;
|
||
|
std::map <std::string, unsigned> m_sizes;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|