LLVM 22.0.0git
llvm::lsp::JSONTransportInput Class Referenceabstract

An abstract class used by the JSONTransport to read JSON message. More...

#include "llvm/Support/LSP/Transport.h"

Inheritance diagram for llvm::lsp::JSONTransportInput:
[legend]

Public Member Functions

 JSONTransportInput (JSONStreamStyle Style=JSONStreamStyle::Standard)
virtual ~JSONTransportInput ()=default
virtual bool hasError () const =0
virtual bool isEndOfInput () const =0
LogicalResult readMessage (std::string &Json)
 Read in a message from the input stream.
virtual LogicalResult readDelimitedMessage (std::string &Json)=0
virtual LogicalResult readStandardMessage (std::string &Json)=0

Detailed Description

An abstract class used by the JSONTransport to read JSON message.

Definition at line 52 of file Transport.h.

Constructor & Destructor Documentation

◆ JSONTransportInput()

llvm::lsp::JSONTransportInput::JSONTransportInput ( JSONStreamStyle Style = JSONStreamStyle::Standard)
inlineexplicit

◆ ~JSONTransportInput()

virtual llvm::lsp::JSONTransportInput::~JSONTransportInput ( )
virtualdefault

Member Function Documentation

◆ hasError()

virtual bool llvm::lsp::JSONTransportInput::hasError ( ) const
pure virtual

◆ isEndOfInput()

virtual bool llvm::lsp::JSONTransportInput::isEndOfInput ( ) const
pure virtual

◆ readDelimitedMessage()

virtual LogicalResult llvm::lsp::JSONTransportInput::readDelimitedMessage ( std::string & Json)
pure virtual

Implemented in llvm::lsp::JSONTransportInputOverFile.

Referenced by readMessage().

◆ readMessage()

LogicalResult llvm::lsp::JSONTransportInput::readMessage ( std::string & Json)
inline

Read in a message from the input stream.

Definition at line 62 of file Transport.h.

References llvm::lsp::Delimited, readDelimitedMessage(), and readStandardMessage().

◆ readStandardMessage()

virtual LogicalResult llvm::lsp::JSONTransportInput::readStandardMessage ( std::string & Json)
pure virtual

Implemented in llvm::lsp::JSONTransportInputOverFile.

Referenced by readMessage().


The documentation for this class was generated from the following file: