comparison PalanthirCppClient/main.cpp @ 50:a15e90e5d6fc

rename in code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Sep 2012 15:50:12 +0200
parents 33d67e1ab173
children
comparison
equal deleted inserted replaced
49:e1a3ae0dadf3 50:a15e90e5d6fc
1 /** 1 /**
2 * Palantir - A Lightweight, RESTful DICOM Store 2 * Palanthir - 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 Palantir::HttpClient c; 35 Palanthir::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);