annotate gcc/go/gofrontend/string-dump.h @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // string-dump.h -- Abstract base class for dumping strings. -*- C++ -*-
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 // Copyright 2011 The Go Authors. All rights reserved.
kono
parents:
diff changeset
4 // Use of this source code is governed by a BSD-style
kono
parents:
diff changeset
5 // license that can be found in the LICENSE file.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 #ifndef GO_STRING_DUMP_H
kono
parents:
diff changeset
8 #define GO_STRING_DUMP_H
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 // This abstract class provides an interface strings for whatever purpose.
kono
parents:
diff changeset
11 // Used for example for exporting and dumping objects.
kono
parents:
diff changeset
12
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
13 class String_dump
111
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 public:
kono
parents:
diff changeset
16 // Write a string. Implements the String_dump interface.
kono
parents:
diff changeset
17 virtual void
kono
parents:
diff changeset
18 write_string(const std::string& s) = 0;
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 // Implementors should override this member, to dump a formatted c string.
kono
parents:
diff changeset
21 virtual void
kono
parents:
diff changeset
22 write_c_string(const char*) = 0;
kono
parents:
diff changeset
23 };
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 #endif // GO_STRING_DUMP_H