equal
deleted
inserted
replaced
|
1 #ifndef NS3_STRING_H |
|
2 #define NS3_STRING_H |
|
3 |
|
4 #include <string> |
|
5 #include "attribute-helper.h" |
|
6 |
|
7 namespace ns3 { |
|
8 |
|
9 class String |
|
10 { |
|
11 public: |
|
12 String (); |
|
13 String (const char *value); |
|
14 String (std::string value); |
|
15 void Set (std::string value); |
|
16 void Set (const char *value); |
|
17 std::string Get (void) const; |
|
18 |
|
19 VALUE_HELPER_HEADER_1 (String); |
|
20 private: |
|
21 std::string m_value; |
|
22 }; |
|
23 |
|
24 std::ostream & operator << (std::ostream &os, const String &value); |
|
25 std::istream &operator >> (std::istream &is, String &value); |
|
26 |
|
27 VALUE_HELPER_HEADER_2 (String); |
|
28 |
|
29 } // namespace ns3 |
|
30 |
|
31 |
|
32 #endif /* NS3_STRING_H */ |