actual/packages/node-libofx/OpenSP-1.5.2/include/ErrnoMessageArg.h

36 lines
650 B
C
Raw Normal View History

2022-04-29 02:44:38 +00:00
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#ifndef ErrnoMessageArg_INCLUDED
#define ErrnoMessageArg_INCLUDED 1
#include "MessageArg.h"
#include "rtti.h"
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
class SP_API ErrnoMessageArg : public OtherMessageArg {
RTTI_CLASS
public:
ErrnoMessageArg(int errnum) : errno_(errnum) { }
MessageArg *copy() const;
// errno might be a macro so we must use a different name
int errnum() const;
private:
int errno_;
};
inline
int ErrnoMessageArg::errnum() const
{
return errno_;
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not ErrnoMessageArg_INCLUDED */