MICO Platform
 All Classes Namespaces Functions Variables Friends
SPARQLUtil.hpp
1 #ifndef HAVE_SPARQL_UTIL_H
2 #define HAVE_SPARQL_UTIL_H 1
3 
4 #include <string>
5 #include <map>
6 
10 #define SPARQL_INCLUDE(NAME) \
11  extern unsigned char NAME ## _sparql []; \
12  extern unsigned int NAME ## _sparql_len ; \
13  const std::string sparql_ ## NAME ((char*) NAME ## _sparql, NAME ## _sparql_len);
14 
15 #define SPARQL_QUERY(NAME) sparql_ ## NAME
16 
20 #define SPARQL_FORMAT(NAME,PARAMS) mico::util::sparql_format_query(SPARQL_QUERY(NAME), PARAMS)
21 
22 namespace mico {
23  namespace util {
24 
28  std::string sparql_format_query(std::string fmt, std::map<std::string,std::string>& parameters);
29 
30  }
31 }
32 
33 #endif
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
Definition: http_client.cpp:23