annotate win64-msvc/include/capnp/pretty-print.h @ 58:eab3b14ddc95

Further win32 build updates
author Chris Cannam
date Mon, 09 Jan 2017 13:51:38 +0000
parents d93140aac40b
children 0f2d93caa50c
rev   line source
Chris@47 1 // Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
Chris@47 2 // Licensed under the MIT License:
Chris@47 3 //
Chris@47 4 // Permission is hereby granted, free of charge, to any person obtaining a copy
Chris@47 5 // of this software and associated documentation files (the "Software"), to deal
Chris@47 6 // in the Software without restriction, including without limitation the rights
Chris@47 7 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Chris@47 8 // copies of the Software, and to permit persons to whom the Software is
Chris@47 9 // furnished to do so, subject to the following conditions:
Chris@47 10 //
Chris@47 11 // The above copyright notice and this permission notice shall be included in
Chris@47 12 // all copies or substantial portions of the Software.
Chris@47 13 //
Chris@47 14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Chris@47 15 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Chris@47 16 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Chris@47 17 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Chris@47 18 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
Chris@47 19 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
Chris@47 20 // THE SOFTWARE.
Chris@47 21
Chris@47 22 #ifndef CAPNP_PRETTY_PRINT_H_
Chris@47 23 #define CAPNP_PRETTY_PRINT_H_
Chris@47 24
Chris@47 25 #if defined(__GNUC__) && !defined(CAPNP_HEADER_WARNINGS)
Chris@47 26 #pragma GCC system_header
Chris@47 27 #endif
Chris@47 28
Chris@47 29 #include "dynamic.h"
Chris@47 30 #include <kj/string-tree.h>
Chris@47 31
Chris@47 32 namespace capnp {
Chris@47 33
Chris@47 34 kj::StringTree prettyPrint(DynamicStruct::Reader value);
Chris@47 35 kj::StringTree prettyPrint(DynamicStruct::Builder value);
Chris@47 36 kj::StringTree prettyPrint(DynamicList::Reader value);
Chris@47 37 kj::StringTree prettyPrint(DynamicList::Builder value);
Chris@47 38 // Print the given Cap'n Proto struct or list with nice indentation. Note that you can pass any
Chris@47 39 // struct or list reader or builder type to this method, since they can be implicitly converted
Chris@47 40 // to one of the dynamic types.
Chris@47 41 //
Chris@47 42 // If you don't want indentation, just use the value's KJ stringifier (e.g. pass it to kj::str(),
Chris@47 43 // any of the KJ debug macros, etc.).
Chris@47 44
Chris@47 45 } // namespace capnp
Chris@47 46
Chris@47 47 #endif // PRETTY_PRINT_H_