diff options
author | David Robillard <d@drobilla.net> | 2011-05-11 23:32:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-11 23:32:18 +0000 |
commit | 3feaad1a898d40e54f3ef7e076a05dd960eefefa (patch) | |
tree | 3c4e557a8ca63b78470d530e0efe10263cee9bc5 /sord/sordmm.hpp | |
parent | 9f6becfdd80dfe4cf1d99d0aefa8b257eb1b0c8d (diff) | |
download | sord-3feaad1a898d40e54f3ef7e076a05dd960eefefa.tar.gz sord-3feaad1a898d40e54f3ef7e076a05dd960eefefa.tar.bz2 sord-3feaad1a898d40e54f3ef7e076a05dd960eefefa.zip |
Pass environment to sord write methods for CURIE abbreviation.
git-svn-id: http://svn.drobilla.net/sord/trunk@108 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord/sordmm.hpp')
-rw-r--r-- | sord/sordmm.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp index d37d6e5..854e647 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -390,9 +390,10 @@ public: inline const Node& base_uri() const { return _base; } - inline void load_file(const std::string& uri); + inline void load_file(SerdEnv* env, const std::string& uri); - inline void load_string(const char* str, + inline void load_string(SerdEnv* env, + const char* str, size_t len, const std::string& base_uri, const std::string lang = "turtle"); @@ -432,12 +433,14 @@ Model::Model(World& world, const std::string& base_uri) } inline void -Model::load_string(const char* str, +Model::load_string(SerdEnv* env, + const char* str, size_t len, const std::string& base_uri, const std::string lang) { sord_read_string(_c_obj, + env, (const uint8_t*)str, (const uint8_t*)base_uri.c_str()); } @@ -448,10 +451,10 @@ inline Model::~Model() } inline void -Model::load_file(const std::string& data_uri) +Model::load_file(SerdEnv* env, const std::string& data_uri) { // FIXME: blank prefix - sord_read_file(_c_obj, (const uint8_t*)data_uri.c_str(), NULL, + sord_read_file(_c_obj, env, (const uint8_t*)data_uri.c_str(), NULL, (const uint8_t*)"b"); } |