Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: lib/ErrorSupport_h.template

Issue 2723583004: Add const char* overloads to ErrorSupport (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/ErrorSupport_cpp.template ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef {{"_".join(config.protocol.namespace)}}_ErrorSupport_h 5 #ifndef {{"_".join(config.protocol.namespace)}}_ErrorSupport_h
6 #define {{"_".join(config.protocol.namespace)}}_ErrorSupport_h 6 #define {{"_".join(config.protocol.namespace)}}_ErrorSupport_h
7 7
8 //#include "Forward.h" 8 //#include "Forward.h"
9 9
10 {% for namespace in config.protocol.namespace %} 10 {% for namespace in config.protocol.namespace %}
11 namespace {{namespace}} { 11 namespace {{namespace}} {
12 {% endfor %} 12 {% endfor %}
13 13
14 class {{config.lib.export_macro}} ErrorSupport { 14 class {{config.lib.export_macro}} ErrorSupport {
15 public: 15 public:
16 ErrorSupport(); 16 ErrorSupport();
17 ~ErrorSupport(); 17 ~ErrorSupport();
18 18
19 void push(); 19 void push();
20 void setName(const char*);
20 void setName(const String&); 21 void setName(const String&);
21 void pop(); 22 void pop();
23 void addError(const char*);
22 void addError(const String&); 24 void addError(const String&);
23 bool hasErrors(); 25 bool hasErrors();
24 String errors(); 26 String errors();
25 27
26 private: 28 private:
27 std::vector<String> m_path; 29 std::vector<String> m_path;
28 std::vector<String> m_errors; 30 std::vector<String> m_errors;
29 }; 31 };
30 32
31 {% for namespace in config.protocol.namespace %} 33 {% for namespace in config.protocol.namespace %}
32 } // namespace {{namespace}} 34 } // namespace {{namespace}}
33 {% endfor %} 35 {% endfor %}
34 36
35 #endif // !defined({{"_".join(config.protocol.namespace)}}_ErrorSupport_h) 37 #endif // !defined({{"_".join(config.protocol.namespace)}}_ErrorSupport_h)
OLDNEW
« no previous file with comments | « lib/ErrorSupport_cpp.template ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698