YARP
Yet Another Robot Platform
ParseName.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef YARP_SERVERSQL_IMPL_PARSENAME_H
11 #define YARP_SERVERSQL_IMPL_PARSENAME_H
12 
13 #include <string>
14 
15 
16 namespace yarp {
17 namespace serversql {
18 namespace impl {
19 
20 class ParseName
21 {
22 private:
23  std::string carrier;
24  std::string networkChoice;
25  std::string portName;
26 public:
27  void apply(const std::string& str);
28 
29  std::string getPortName()
30  {
31  return portName;
32  }
33 
34  std::string getCarrier()
35  {
36  return carrier;
37  }
38 
39  std::string getNetworkChoice()
40  {
41  return networkChoice;
42  }
43 
44  void resetCarrier()
45  {
46  carrier = "";
47  }
48 };
49 
50 } // namespace impl
51 } // namespace serversql
52 } // namespace yarp
53 
54 
55 #endif // YARP_SERVERSQL_IMPL_PARSENAME_H
yarp::serversql::impl::ParseName::resetCarrier
void resetCarrier()
Definition: ParseName.h:44
yarp::serversql::impl::ParseName::getPortName
std::string getPortName()
Definition: ParseName.h:29
yarp::serversql::impl::ParseName::getNetworkChoice
std::string getNetworkChoice()
Definition: ParseName.h:39
yarp::serversql::impl::ParseName
Definition: ParseName.h:21
yarp::serversql::impl::ParseName::getCarrier
std::string getCarrier()
Definition: ParseName.h:34
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::serversql::impl::ParseName::apply
void apply(const std::string &str)
Definition: ParseName.cpp:17