Source Code (Use browser search to find items of interest.)

Class Index

kdelibs'MethodDef (./kdelibs/arts/mcop/core.h:136)

class MethodDef : public Type {
public:
	MethodDef();
	MethodDef(const std::string& name, const std::string& type, MethodType flags, const std::vector<ParamDef *>& signature);
	MethodDef(Buffer& stream);
	MethodDef(const MethodDef& copyType);
	MethodDef& operator=(const MethodDef& assignType);
	virtual ~MethodDef();

	std::string name;
	std::string type;
	MethodType flags;
	std::vector<ParamDef *> signature;

// marshalling functions
	void readType(Buffer& stream);
	void writeType(Buffer& stream) const;
};


kdelibs'MethodDef::MethodDef() (./kdelibs/arts/mcop/core.cc:343)

MethodDef::MethodDef()
{
}


kdelibs'MethodDef::MethodDef() (./kdelibs/arts/mcop/core.cc:347)

MethodDef::MethodDef(const std::string& name, const std::string& type, MethodType flags, const std::vector<ParamDef *>& signature)
{
	this->name = name;
	this->type = type;
	this->flags = flags;
	this->signature = signature;
}


kdelibs'MethodDef::MethodDef() (./kdelibs/arts/mcop/core.cc:355)

MethodDef::MethodDef(Buffer& stream)
{
	readType(stream);
}


kdelibs'MethodDef::MethodDef() (./kdelibs/arts/mcop/core.cc:360)

MethodDef::MethodDef(const MethodDef& copyType) : ::Type(copyType)
{
	Buffer buffer;
	copyType.writeType(buffer);
	readType(buffer);
}


kdelibs'MethodDef::~MethodDef() (./kdelibs/arts/mcop/core.cc:375)

MethodDef::~MethodDef()
{
	freeTypeSeq(signature);
}


kdelibs'MethodDef::readType() (./kdelibs/arts/mcop/core.cc:380)

void MethodDef::readType(Buffer& stream)
{
	stream.readString(name);
	stream.readString(type);
	flags = (MethodType)stream.readLong();
	readTypeSeq(stream,signature);
}


kdelibs'MethodDef::writeType() (./kdelibs/arts/mcop/core.cc:388)

void MethodDef::writeType(Buffer& stream) const
{
	stream.writeString(name);
	stream.writeString(type);
	stream.writeLong(flags);
	writeTypeSeq(stream,signature);
}