Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
DM::Result Class Reference

#include <DMSrcSink.h>

Public Types

enum class  Status : int { Ok , Fatal , Skip }
 

Public Member Functions

 Result (Status status, SkString msg)
 
 Result (const Result &)=default
 
Resultoperator= (const Result &)=default
 
 va_start (args, fmt)
 
msg printVAList (fmt, args)
 
 va_end (args)
 
 va_start (args, fmt)
 
msg printVAList (fmt, args)
 
 va_end (args)
 
bool isOk ()
 
bool isFatal ()
 
bool isSkip ()
 
const char * c_str () const
 
Status status () const
 

Static Public Member Functions

static Result Ok ()
 
static Result Fatal (const char *fmt,...) SK_PRINTF_LIKE(1
 
static Result Skip (const char *fmt,...) SK_PRINTF_LIKE(1
 

Public Attributes

static Result va_list args
 
return Result {Status::Fatal, std::move(msg)}
 

Detailed Description

Definition at line 41 of file DMSrcSink.h.

Member Enumeration Documentation

◆ Status

enum class DM::Result::Status : int
strong
Enumerator
Ok 
Fatal 
Skip 

Definition at line 43 of file DMSrcSink.h.

43: int { Ok, Fatal, Skip };
static Result Skip(const char *fmt,...) SK_PRINTF_LIKE(1
static Result Ok()
Definition: DMSrcSink.h:50
static Result Fatal(const char *fmt,...) SK_PRINTF_LIKE(1

Constructor & Destructor Documentation

◆ Result() [1/2]

DM::Result::Result ( Status  status,
SkString  msg 
)
inline

Definition at line 45 of file DMSrcSink.h.

45: fMsg(std::move(msg)), fStatus(status) {}
Status status() const
Definition: DMSrcSink.h:77

◆ Result() [2/2]

DM::Result::Result ( const Result )
default

Member Function Documentation

◆ c_str()

const char * DM::Result::c_str ( ) const
inline

Definition at line 76 of file DMSrcSink.h.

76{ return fMsg.c_str(); }
const char * c_str() const
Definition: SkString.h:133

◆ Fatal()

static Result DM::Result::Fatal ( const char *  fmt,
  ... 
)
static

◆ isFatal()

bool DM::Result::isFatal ( )
inline

Definition at line 73 of file DMSrcSink.h.

73{ return fStatus == Status::Fatal; }

◆ isOk()

bool DM::Result::isOk ( )
inline

Definition at line 72 of file DMSrcSink.h.

72{ return fStatus == Status::Ok; }

◆ isSkip()

bool DM::Result::isSkip ( )
inline

Definition at line 74 of file DMSrcSink.h.

74{ return fStatus == Status::Skip; }

◆ Ok()

static Result DM::Result::Ok ( )
inlinestatic

Definition at line 50 of file DMSrcSink.h.

50{ return Result{Status::Ok, {}}; }
return Result
Definition: DMSrcSink.h:59

◆ operator=()

Result & DM::Result::operator= ( const Result )
default

◆ printVAList() [1/2]

msg DM::Result::printVAList ( fmt  ,
args   
)

◆ printVAList() [2/2]

msg DM::Result::printVAList ( fmt  ,
args   
)

◆ Skip()

static Result DM::Result::Skip ( const char *  fmt,
  ... 
)
static

◆ status()

Status DM::Result::status ( ) const
inline

Definition at line 77 of file DMSrcSink.h.

77{ return fStatus; }

◆ va_end() [1/2]

DM::Result::va_end ( args  )

◆ va_end() [2/2]

DM::Result::va_end ( args  )

◆ va_start() [1/2]

DM::Result::va_start ( args  ,
fmt   
)

◆ va_start() [2/2]

DM::Result::va_start ( args  ,
fmt   
)

Member Data Documentation

◆ args

Result va_list DM::Result::args
Initial value:
{

Definition at line 54 of file DMSrcSink.h.

◆ Result

return DM::Result::Result {Status::Fatal, std::move(msg)}

Definition at line 59 of file DMSrcSink.h.


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