Google-ProtocolBuffers-Dynamic
view release on metacpan or search on metacpan
src/sourcetree.h view on Meta::CPAN
#ifndef _GPD_XS_SOURCETREE_INCLUDED
#define _GPD_XS_SOURCETREE_INCLUDED
#include <google/protobuf/compiler/importer.h>
#include "unordered_map.h"
namespace gpd {
class MemorySourceTree;
class OverlaySourceTree : public google::protobuf::compiler::SourceTree {
public:
OverlaySourceTree(MemorySourceTree *memory, google::protobuf::compiler::SourceTree *fallback);
virtual google::protobuf::io::ZeroCopyInputStream *Open(const std::string &filename);
virtual std::string GetLastErrorMessage();
private:
MemorySourceTree *memory;
google::protobuf::compiler::SourceTree *fallback;
};
class MemorySourceTree : public google::protobuf::compiler::SourceTree {
public:
void AddFile(const std::string &filename, const char *data, size_t len);
virtual google::protobuf::io::ZeroCopyInputStream *Open(const std::string &filename);
private:
UMS_NS::unordered_map<std::string, std::string> sources;
};
}
#endif
( run in 0.866 second using v1.01-cache-2.11-cpan-39bf76dae61 )