This is Unofficial EPICS BASE Doxygen Site
epics::nt::Result::Error Struct Reference

#include "validator.h"

+ Collaboration diagram for epics::nt::Result::Error:

Public Types

enum  Type { MissingField, IncorrectType, IncorrectId }
 

Public Member Functions

 Error (std::string const &path, Type type)
 
bool operator== (const Error &other) const
 
std::ostream & dump (std::ostream &os) const
 

Public Attributes

std::string path
 
enum epics::nt::Result::Error::Type type
 

Detailed Description

Definition at line 24 of file validator.h.

Member Enumeration Documentation

Enumerator
MissingField 
IncorrectType 
IncorrectId 

Definition at line 26 of file validator.h.

Constructor & Destructor Documentation

epics::nt::Result::Error::Error ( std::string const &  path,
Type  type 
)
inline

Definition at line 32 of file validator.h.

33  : path(path), type(type) {}
enum epics::nt::Result::Error::Type type

Member Function Documentation

std::ostream& epics::nt::Result::Error::dump ( std::ostream &  os) const
inline

Definition at line 39 of file validator.h.

39  {
40  os << "Error(path=" << (path.empty() ? "<root>" : path) << ": ";
41 
42  switch(type) {
43  case MissingField: os << "missing"; break;
44  case IncorrectType: os << "incorrect type"; break;
45  case IncorrectId: os << "incorrect ID"; break;
46  }
47  os << ")";
48  return os;
49  }
enum epics::nt::Result::Error::Type type
bool epics::nt::Result::Error::operator== ( const Error other) const
inline

Definition at line 35 of file validator.h.

35  {
36  return type == other.type && path == other.path;
37  }
enum epics::nt::Result::Error::Type type

Member Data Documentation

std::string epics::nt::Result::Error::path

Definition at line 25 of file validator.h.

enum epics::nt::Result::Error::Type epics::nt::Result::Error::type

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