ARC SDK
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
svn-area
arc1-clean
src
hed
libs
compute
EndpointQueryingStatus.h
1
#ifndef __ARC_ENDPOINTQUERYINGSTATUS_H__
2
#define __ARC_ENDPOINTQUERYINGSTATUS_H__
3
4
#include <string>
5
6
namespace
Arc {
7
9
19
class
EndpointQueryingStatus
{
20
public
:
22
enum
EndpointQueryingStatusType
{
23
UNKNOWN
,
24
SUSPENDED_NOTREQUIRED
,
25
STARTED
,
26
FAILED
,
27
NOPLUGIN
,
28
NOINFORETURNED
,
29
SUCCESSFUL
30
};
31
33
static
std::string
str
(
EndpointQueryingStatusType
status);
34
36
EndpointQueryingStatus
(
EndpointQueryingStatusType
status =
UNKNOWN
,
const
std::string& description =
""
) : status(status), description(description) {};
37
39
bool
operator==
(
EndpointQueryingStatusType
s)
const
{
return
status == s; };
43
bool
operator==
(
const
EndpointQueryingStatus
& s)
const
{
return
status == s.status; };
45
bool
operator!=
(
EndpointQueryingStatusType
s)
const
{
return
status != s; };
47
bool
operator!=
(
const
EndpointQueryingStatus
& s)
const
{
return
status != s.status; };
49
bool
operator!
()
const
{
return
status !=
SUCCESSFUL
; };
51
operator
bool()
const
{
return
status ==
SUCCESSFUL
; };
52
56
EndpointQueryingStatus
&
operator=
(
EndpointQueryingStatusType
s) { status = s;
return
*
this
; };
60
EndpointQueryingStatus
&
operator=
(
const
EndpointQueryingStatus
& s) { status = s.status; description = s.description;
return
*
this
; };
61
63
EndpointQueryingStatusType
getStatus
()
const
{
return
status; };
65
const
std::string&
getDescription
()
const
{
return
description; };
69
std::string
str
()
const
{
return
str
(status); };
70
71
friend
bool
operator==
(
EndpointQueryingStatusType
,
const
EndpointQueryingStatus
&);
72
73
private
:
74
EndpointQueryingStatusType
status;
75
std::string description;
76
};
77
78
inline
bool
operator==(
EndpointQueryingStatus::EndpointQueryingStatusType
eqst,
const
EndpointQueryingStatus& eqs) {
return
eqs == eqst; }
79
80
}
// namespace Arc
81
82
#endif // __ARC_ENDPOINTQUERYINGSTATUS_H__
Generated on Fri Jul 5 2013 14:37:45 for ARC SDK by
1.8.3.1-20130209