Click here to Skip to main content
15,886,518 members
Articles / Containers / Virtual Machine

An extendable report editor

Rate me:
Please Sign up or sign in to vote.
5.00/5 (11 votes)
3 Sep 2008CPOL3 min read 41K   2K   35  
An extendable report editor. You can simply add your own controls without recompiling the program or writing annoying plug-ins.
// MemStk.h: interface for the CMemStk class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MEMSTK_H__C52A5CBF_0474_4D45_8034_A015FDCFF513__INCLUDED_)
#define AFX_MEMSTK_H__C52A5CBF_0474_4D45_8034_A015FDCFF513__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "mem.h"

class CMemStk{
public:
    CMem **index;
    long top;
	long size;
	BOOL case_sensitive;
public:
	int GetPath(CFileBase *file);
	CMem * Search(char *str);
	int SetCaseSensetive(BOOL c);
	int CompMem(CMem *mem1,CMem *mem2);
	int Push(char *str);
	long BSearch_Pos(CMem *node,int order,int *find_flag);
	int InsOrdered(CMem *str,int order,int unique);
	int DelElem(long i);
	int InsertElem(long i,CMem *node);
	long BSearch(CMem *node,int order);
	CMem * BSearch_Node(CMem *node,int order);
	int Sort(int order);
	CMem * GetElem(long index);
	CMem * GetTop();
	CMem * Search(CMem *node);
	CMem *PushEmpty();
	CMemStk();
	int Clear();
	int DelTop();
	int Destroy();
	int Init(long init_size);
	int IsEmpty();
	int IsFull();
	int Pop(CMem *node);
	int Print();
	int Push(CMem *node);
	long GetLen();
	~CMemStk();
};


#endif // !defined(AFX_MEMSTK_H__C52A5CBF_0474_4D45_8034_A015FDCFF513__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
China China
26 years old, 2 years work experience.

Comments and Discussions