TerraLib and TerraView Wiki Page

This is an old revision of the document!



Warning: Declaration of syntax_plugin_iframe::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/terralib5/wiki/lib/plugins/iframe/syntax.php on line 18

Warning: Declaration of syntax_plugin_iframe::render($mode, &$R, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/terralib5/wiki/lib/plugins/iframe/syntax.php on line 18

Warning: Declaration of syntax_plugin_externallink::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/html/terralib5/wiki/lib/plugins/externallink/syntax.php on line 107

Warning: Declaration of syntax_plugin_externallink::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/html/terralib5/wiki/lib/plugins/externallink/syntax.php on line 107

TerraLib → Core Runtime Library

URI

Design

API

Examples

main.cpp
// TerraLib
#include <terralib/core/URI.h>
 
// STL
#include <cassert>
 
int main()
{
 
  te::core::URI uri("http://www.dpi.inpe.br/terralib5/wiki/doku.php?id=wiki:documentation:devguide#modules");
 
  assert(uri.is_absolute());
  assert(!uri.is_opaque());
  assert(*uri.scheme() == "http");
  assert(*uri.host() == "www.dpi.inpe.br");
  assert(*uri.path() == "/terralib5/wiki/doku.php");
  assert(*uri.query() == "id=wiki:documentation:devguide");
  assert(*uri.fragment() == "modules");
 
  return 0;
}

References

Tickets

  • #270: Refactory URI.
  • #1332: Criar a estrutura de pastas e registro no CMake para a nova versão de URI.
  • #1333: Implementação da API URI.
  • #1334: Implementação de testes para API URI.
  • #1335: Implementar os exemplos da API URI.
  • #1336: Fazer a documentação da API de URIs.

Module Manager