/usr/include/OpenSP/MessageArg.h is in libosp-dev 1.5.2-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | // Copyright (c) 1994 James Clark, 1999 Matthias Clasen
// See the file COPYING for copying permission.
#ifndef MessageArg_INCLUDED
#define MessageArg_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "StringC.h"
#include "Vector.h"
#include "rtti.h"
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
class MessageBuilder;
class SP_API MessageArg {
public:
MessageArg();
virtual ~MessageArg();
virtual MessageArg *copy() const = 0;
virtual void append(MessageBuilder &) const = 0;
};
class SP_API StringMessageArg : public MessageArg {
public:
StringMessageArg(const StringC &);
MessageArg *copy() const;
void append(MessageBuilder &) const;
private:
StringC s_;
};
class SP_API NumberMessageArg : public MessageArg {
public:
NumberMessageArg(unsigned long);
MessageArg *copy() const;
void append(MessageBuilder &) const;
private:
unsigned long n_;
};
class SP_API OrdinalMessageArg : public MessageArg {
public:
OrdinalMessageArg(unsigned long);
MessageArg *copy() const;
void append(MessageBuilder &) const;
private:
unsigned long n_;
};
class SP_API OtherMessageArg : public MessageArg {
RTTI_CLASS
public:
OtherMessageArg();
void append(MessageBuilder &) const;
};
class SP_API StringVectorMessageArg : public MessageArg {
public:
StringVectorMessageArg(const Vector<StringC> &);
MessageArg *copy() const;
void append(MessageBuilder &) const;
private:
Vector<StringC> v_;
};
#ifdef SP_NAMESPACE
}
#endif
#endif /* not MessageArg_INCLUDED */
|