Click here to Skip to main content
Click here to Skip to main content
Articles » Database » Database » General » Downloads
 
Add your own
alternative version

C++ Object Oriented Database Generator

, 17 Nov 1999
This project is a code generator to produce CObject-dervied data classes for Object-Oriented database management
// ObGenDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CObGenDlg dialog

class CObGenDlg : public CDialog
{
// Construction
public:
	CObGenDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CObGenDlg)
	enum { IDD = IDD_OBGEN_DIALOG };
	CListBox	m_IndexListBox;
	CListBox	m_ListBox;
	CString	m_strFileName;
	CString	m_strNewMember;
	CString	m_strNewIndex;
	//}}AFX_DATA

	CString m_strCppFile;
	CString m_strHeaderFile;
	CString m_strClassBaseName;

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CObGenDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	void WriteHeaderFile();
	void WriteSourceFile();
	void WriteListClassHeader(CStdioFile& f);
	void WriteListClassSource(CStdioFile& f);
	CString GetIndexParamDeclaration();
	CString GetIndexParamPassing();

	// Generated message map functions
	//{{AFX_MSG(CObGenDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelect();
	afx_msg void OnAdd();
	afx_msg void OnDelete();
	afx_msg void OnGenerate();
	afx_msg void OnClear();
	afx_msg void OnIndexClear();
	afx_msg void OnIndexDelete();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Robert Pittenger, MCPD-EAD
President Starpoint Software Inc.
United States United States
Bob Pittenger is founder and President of Starpoint Software Inc. He holds a B.A. degree from Miami University, M.S. and Ph.D. degrees from Purdue University, and an MBA from Xavier University. He has been programming since 1993, starting with Windows application development in C++/MFC and moving to C# and .NET around 2005 and is a .NET Microsoft Certified Professional Developer.
 
Bob is the author of two books:
Billionaire: How the Ultra-Rich Built Their Fortunes Through Good and Evil and What You Can Learn from Them
and
Wealthonomics: The Most Important Economic and Financial Concepts that Can Make You Rich Fast.
Visit http://www.billionairebook.net for more information.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141220.1 | Last Updated 18 Nov 1999
Article Copyright 1999 by Robert Pittenger, MCPD-EAD
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid