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