gepetto-viewer-corba 5.8.0
Corba server for gepetto-viewer
Loading...
Searching...
No Matches
url.hh
Go to the documentation of this file.
1// Copyright (c) 2015-2018, LAAS-CNRS
2// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3//
4// This file is part of gepetto-viewer-corba.
5// gepetto-viewer-corba is free software: you can redistribute it
6// and/or modify it under the terms of the GNU Lesser General Public
7// License as published by the Free Software Foundation, either version
8// 3 of the License, or (at your option) any later version.
9//
10// gepetto-viewer-corba is distributed in the hope that it will be
11// useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13// General Lesser Public License for more details. You should have
14// received a copy of the GNU Lesser General Public License along with
15// gepetto-viewer-corba. If not, see <http://www.gnu.org/licenses/>.
16
17#ifndef GEPETTO_GUI_OMNIORB_URL_HH
18#define GEPETTO_GUI_OMNIORB_URL_HH
19
20#include <QString>
21#include <gepetto/viewer/corba/deprecated.hh>
22#warning "This file will be deleted in the future."
23
24namespace gepetto {
25namespace gui {
26namespace omniOrb {
27static inline QString IIOPurl(const QString& host = "localhost",
28 const QString& port = "2809")
29 GEPETTO_VIEWER_CORBA_DEPRECATED;
30
31static inline QString IIOPurl(const QString& host, const QString& port) {
32 return QString("corbaloc:iiop:%1:%2").arg(host).arg(port);
33}
34} // namespace omniOrb
35} // namespace gui
36} // namespace gepetto
37
38#endif // GEPETTO_GUI_OMNIORB_URL_HH
Definition url.hh:24