Ignition Msgs

API Reference

5.8.1
test_config.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef IGNITION_TRANSPORT_TEST_CONFIG_H_
19 #define IGNITION_TRANSPORT_TEST_CONFIG_H_
20 
21 #define PROJECT_SOURCE_PATH "/builddir/build/BUILD/ignition-msgs-5.8.1"
22 #define IGN_CONFIG_PATH "/builddir/build/BUILD/ignition-msgs-5.8.1/redhat-linux-build/test/conf"
23 #define IGN_TEST_LIBRARY_PATH "/builddir/build/BUILD/ignition-msgs-5.8.1/redhat-linux-build/src"
24 
25 #if (_MSC_VER >= 1400) // Visual Studio 2005
26  #include <sstream>
27 
36  int setenv(const char *_name, const char *_value, int /*_rewrite*/)
37  {
38  std::stringstream sstr;
39  std::string name = _name;
40  std::string value = _value;
41  sstr << name << '=' << value;
42  return _putenv(sstr.str().c_str());
43  }
44 
47  void unsetenv(const char *_name)
48  {
49  std::stringstream sstr;
50  std::string name = _name;
51  sstr << name << '=';
52  _putenv(sstr.str().c_str());
53  }
54 #endif
55 
56 #endif
T str(T... args)