Public Member Functions | Static Public Attributes | Private Attributes
util::Status Class Reference

#include <status.h>

List of all members.

Public Member Functions

int error_code () const
std::string error_message () const
bool ok () const
bool operator!= (const Status &x) const
Statusoperator= (const Status &x)
bool operator== (const Status &x) const
 Status ()
 Status (error::Code error_code, std::string error_message)
 Status (const Status &)
std::string ToString () const
 ~Status ()

Static Public Attributes

static const Status CANCELLED = Status(error::CANCELLED, "")
static const Status OK = Status()
static const Status UNKNOWN = Status(error::UNKNOWN, "")

Private Attributes

error::Code error_code_
std::string error_message_

Detailed Description

Definition at line 59 of file status.h.


Constructor & Destructor Documentation

Definition at line 84 of file status.cc.

util::Status::Status ( error::Code  error_code,
std::string  error_message 
)

Definition at line 87 of file status.cc.

util::Status::Status ( const Status other)

Definition at line 94 of file status.cc.

util::Status::~Status ( ) [inline]

Definition at line 71 of file status.h.


Member Function Documentation

int util::Status::error_code ( ) const [inline]

Definition at line 82 of file status.h.

std::string util::Status::error_message ( ) const [inline]

Definition at line 85 of file status.h.

bool util::Status::ok ( ) const [inline]

Definition at line 79 of file status.h.

bool util::Status::operator!= ( const Status x) const [inline]

Definition at line 90 of file status.h.

Status & util::Status::operator= ( const Status x)

Definition at line 98 of file status.cc.

bool util::Status::operator== ( const Status x) const

Definition at line 104 of file status.cc.

std::string util::Status::ToString ( ) const

Definition at line 109 of file status.cc.


Member Data Documentation

Definition at line 75 of file status.h.

Definition at line 98 of file status.h.

std::string util::Status::error_message_ [private]

Definition at line 99 of file status.h.

const Status util::Status::OK = Status() [static]

Definition at line 74 of file status.h.

Definition at line 76 of file status.h.


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


gcloud_speech_utils
Author(s):
autogenerated on Thu Jun 6 2019 17:58:05