Mercurial > hg > orthanc
comparison OrthancCppClient/main.cpp @ 60:77aec9be0a51 orthanc-renaming
renaming of cppclient
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 16 Sep 2012 09:29:54 +0200 |
parents | 4bc019d2f969 |
children | e3a40c7846b8 |
comparison
equal
deleted
inserted
replaced
59:c996319e90bc | 60:77aec9be0a51 |
---|---|
1 /** | 1 /** |
2 * Palanthir - A Lightweight, RESTful DICOM Store | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, | 3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, |
4 * Belgium | 4 * Belgium |
5 * | 5 * |
6 * Permission is hereby granted, free of charge, to any person | 6 * Permission is hereby granted, free of charge, to any person |
7 * obtaining a copy of this software and associated documentation | 7 * obtaining a copy of this software and associated documentation |
30 #include <iostream> | 30 #include <iostream> |
31 | 31 |
32 int main() | 32 int main() |
33 { | 33 { |
34 // Prepare a simple call to a Web service | 34 // Prepare a simple call to a Web service |
35 Palanthir::HttpClient c; | 35 Orthanc::HttpClient c; |
36 c.SetUrl("http://nominatim.openstreetmap.org/search?format=json&q=chu+liege+belgium"); | 36 c.SetUrl("http://nominatim.openstreetmap.org/search?format=json&q=chu+liege+belgium"); |
37 | 37 |
38 // Do the request and store the result in a JSON structure | 38 // Do the request and store the result in a JSON structure |
39 Json::Value result; | 39 Json::Value result; |
40 c.Apply(result); | 40 c.Apply(result); |