Index: tools/json_schema_compiler/cpp_generator.py |
diff --git a/tools/json_schema_compiler/cpp_generator.py b/tools/json_schema_compiler/cpp_generator.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6dc05137205b90e00996fb529aa51fa613d3139f |
--- /dev/null |
+++ b/tools/json_schema_compiler/cpp_generator.py |
@@ -0,0 +1,11 @@ |
+# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+from cc_generator import CCGenerator |
+from h_generator import HGenerator |
+ |
+class CppGenerator(object): |
+ def __init__(self, type_generator, cpp_namespace): |
+ self.h_generator = HGenerator(type_generator, cpp_namespace) |
+ self.cc_generator = CCGenerator(type_generator, cpp_namespace) |