Marek Kotewicz
10 years ago
5 changed files with 45 additions and 56 deletions
@ -1,23 +0,0 @@ |
|||
// this file is autogenerated, do not modify!!!
|
|||
|
|||
#include <iostream> |
|||
#include <sstream> |
|||
#include "${ETH_RESOURCE_NAME}.h" |
|||
|
|||
using namespace std; |
|||
using namespace dev; |
|||
using namespace dev::eth; |
|||
|
|||
${ETH_RESOURCE_NAME}::${ETH_RESOURCE_NAME}() |
|||
{ |
|||
${ETH_RESULT_DATA} |
|||
${ETH_RESULT_INIT} |
|||
} |
|||
|
|||
string ${ETH_RESOURCE_NAME}::loadResourceAsString(string _name) |
|||
{ |
|||
ostringstream bistream; |
|||
bistream.write(eth_resources[_name], eth_sizes[_name]); |
|||
return bistream.str(); |
|||
} |
|||
|
@ -1,26 +0,0 @@ |
|||
// 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; |
|||
|
|||
}; |
|||
|
|||
} |
|||
} |
|||
|
@ -0,0 +1,36 @@ |
|||
// 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; |
|||
}; |
|||
|
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue