Gin
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
RemoteServer::CommandResult Struct Reference

The outcome of a command. More...

#include <gin_remoteserver.h>

Public Member Functions

 CommandResult ()=default
 
 CommandResult (const juce::var &v)
 
bool ok () const noexcept
 

Static Public Member Functions

static CommandResult fail (const juce::String &message)
 

Public Attributes

juce::var value
 
juce::String error
 

Detailed Description

The outcome of a command.

Construct from a juce::var for success, or use fail().

Constructor & Destructor Documentation

◆ CommandResult() [1/2]

RemoteServer::CommandResult::CommandResult ( )
default

◆ CommandResult() [2/2]

RemoteServer::CommandResult::CommandResult ( const juce::var &  v)

Member Function Documentation

◆ fail()

static CommandResult RemoteServer::CommandResult::fail ( const juce::String &  message)
static

References error.

◆ ok()

bool RemoteServer::CommandResult::ok ( ) const
noexcept

References error.

Member Data Documentation

◆ value

juce::var RemoteServer::CommandResult::value

◆ error

juce::String RemoteServer::CommandResult::error

Referenced by fail(), and ok().


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