Marek Kotewicz
10 years ago
6 changed files with 74 additions and 59 deletions
@ -1,26 +1,23 @@ |
|||
// this file is autogenerated, do not modify!!!
|
|||
|
|||
#include <string> |
|||
#include <iostream> |
|||
#include <sstream> |
|||
#include <unordered_map> |
|||
#include "${ETH_RESOURCE_NAME}.h" |
|||
|
|||
using namespace std; |
|||
using namespace dev; |
|||
using namespace dev::eth; |
|||
|
|||
${ETH_RESULT_DATA} |
|||
|
|||
static unordered_map <string, const char*> eth_resources; |
|||
static unordered_map <string, unsigned> eth_sizes; |
|||
|
|||
void initResources() |
|||
${ETH_RESOURCE_NAME}::${ETH_RESOURCE_NAME}() |
|||
{ |
|||
${ETH_RESULT_INIT} |
|||
//eth_resources["LICENSE"] = (char const*)eth_LICENSE;
|
|||
//eth_sizes["LICENSE"] = sizeof(eth_LICENSE);
|
|||
${ETH_RESULT_DATA} |
|||
${ETH_RESULT_INIT} |
|||
} |
|||
|
|||
string loadResource(string _name) |
|||
string ${ETH_RESOURCE_NAME}::loadResourceAsString(string _name) |
|||
{ |
|||
ostringstream bistream; |
|||
bistream.write(eth_resources[_name], eth_sizes[_name]); |
|||
return bistream.str(); |
|||
} |
|||
|
|||
|
@ -0,0 +1,26 @@ |
|||
// this file is autogenerated, do not modify!!!
|
|||
#pragma once |
|||
|
|||
#include <string> |
|||
#include <unordered_map> |
|||
|
|||
namespace dev |
|||
{ |
|||
namespace eth |
|||
{ |
|||
|
|||
class ${ETH_RESOURCE_NAME} |
|||
{ |
|||
public: |
|||
${ETH_RESOURCE_NAME}(); |
|||
std::string loadResourceAsString(std::string _name): |
|||
|
|||
private: |
|||
std::unordered_map <std::string, const char*> m_resources; |
|||
std::unordered_map <std::string, unsigned> m_sizes; |
|||
|
|||
}; |
|||
|
|||
} |
|||
} |
|||
|
@ -1,6 +0,0 @@ |
|||
|
|||
set(copydlls "copydlls.cmake") |
|||
set(conf "configure.cmake") |
|||
|
|||
set(ETH_RESOURCES "copyddls" "conf") |
|||
|
Loading…
Reference in new issue