OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef {{"_".join(config.protocol.namespace)}}_ErrorSupport_h |
| 6 #define {{"_".join(config.protocol.namespace)}}_ErrorSupport_h |
| 7 |
| 8 //#include "Forward.h" |
| 9 |
| 10 {% for namespace in config.protocol.namespace %} |
| 11 namespace {{namespace}} { |
| 12 {% endfor %} |
| 13 |
| 14 class {{config.lib.export_macro}} ErrorSupport { |
| 15 public: |
| 16 ErrorSupport(); |
| 17 ErrorSupport(String* errorString); |
| 18 ~ErrorSupport(); |
| 19 |
| 20 void push(); |
| 21 void setName(const String&); |
| 22 void pop(); |
| 23 void addError(const String&); |
| 24 bool hasErrors(); |
| 25 String errors(); |
| 26 |
| 27 private: |
| 28 std::vector<String> m_path; |
| 29 std::vector<String> m_errors; |
| 30 String* m_errorString; |
| 31 }; |
| 32 |
| 33 {% for namespace in config.protocol.namespace %} |
| 34 } // namespace {{namespace}} |
| 35 {% endfor %} |
| 36 |
| 37 #endif // !defined({{"_".join(config.protocol.namespace)}}_ErrorSupport_h) |
OLD | NEW |