actual/packages/node-libofx/OpenSP-1.5.2/include/ErrnoMessageArg.h
2022-04-28 22:44:38 -04:00

35 lines
650 B
C++

// 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 */