Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > 0f593f47b85ce09ba29c11debf159b75 > files > 9

dnstouch-debug-0.4-16mdv2011.0.i586.rpm

// Written by John Newbigin
// jn@it.swin.edu.au
// Copyright (c) 1999 John Newbigin
// Covered by the terms of the GPL.

#ifndef HUGESTRING_H
#define HUGESTRING_H

// This is a huge string class
// that means char * with built in memory management

#include <string.h>

class HugeString
{
public:
	HugeString();
	~HugeString();

	int cat(char *str);
	int cat(char c);
	char *pchar();
	int clear();
	int incRefCount();
	int decRefCount();

private:
	char *string;
	int alloclen;
	int allocsize;
	int stringlen;

	int GrowString(int blocks);
	int refCount;
};

#endif