class QObject | .h |
constructor | QObject() |
destructor | ~QObject() |
Name | string Name() |
Name | void Name(string s) |
/*
* QObject - base class of all other Q classes
* 14-11-96: Created!
* (C) MarketGraph/RVG
*/
#include <qlib/object.h>
//#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
#include <qlib/debug.h>
DEBUG_ENABLE
QObject::QObject()
{ //printf("QObject ctor\n");
name=0;
}
QObject::~QObject()
{
if(name)qfree(name);
}
string QObject::Name()
{ if(!name)return "<unnamed>";
return name;
}
void QObject::Name(string s)
{
if(name)qfree(name);
name=qstrdup(s);
}