Fix piping to TortoiseGitUDiff by checking for ERROR_BROKEN_PIPE and treating that...
[TortoiseGit.git] / ext / scintilla / include / ILoader.h
blobaa091189e5e4412c81e879a88f2ec7fc043147a8
1 // Scintilla source code edit control
2 /** @file ILoader.h
3 ** Interface for loading into a Scintilla document from a background thread.
4 ** Interface for manipulating a document without a view.
5 **/
6 // Copyright 1998-2017 by Neil Hodgson <neilh@scintilla.org>
7 // The License.txt file describes the conditions under which this software may be distributed.
9 #ifndef ILOADER_H
10 #define ILOADER_H
12 #include "Sci_Position.h"
14 namespace Scintilla {
16 class ILoader {
17 public:
18 virtual int SCI_METHOD Release() = 0;
19 // Returns a status code from SC_STATUS_*
20 virtual int SCI_METHOD AddData(const char *data, Sci_Position length) = 0;
21 virtual void * SCI_METHOD ConvertToDocument() = 0;
24 static constexpr int deRelease0 = 0;
26 class IDocumentEditable {
27 public:
28 // Allow this interface to add methods over time and discover whether new methods available.
29 virtual int SCI_METHOD DEVersion() const noexcept = 0;
31 // Lifetime control
32 virtual int SCI_METHOD AddRef() noexcept = 0;
33 virtual int SCI_METHOD Release() = 0;
38 #endif