Click here to Skip to main content
11,414,619 members (68,656 online)
Click here to Skip to main content
Articles » Database » Database » General » Downloads
Add your own
alternative version

Database Visualization

, 31 May 2006
This article aims to create a simple tool for visualizing database tables and relations, a database map to refer to.
src.zip
src
msado15.tlh
msado15.tli
QueryBuilder.dsp
QueryBuilder.dsw
QueryBuilder.exe
QueryBuilder.clw
res
QueryBuilder.ico
logo.bmp
msado15.tlh
msado15.tli
Manifest
default1.bin
ListIcons.bmp
wingraphviz.zip
WinGraphViz
WinGraphviz_v1.02.25s.cab
WinGraphviz_v1.02.24.msi
WinGraphviz_v1.02.24.cab
WinGraphviz_v1.02.20.msi
WinGraphviz_v1.02.20.cab
dotguide.pdf
// Visualization.h: interface for the CVisualization class.
#if !defined(AFX_VISUALIZATION_H__BC001D31_AEF9_427D_A4A7_94E89BB54362__INCLUDED_)
#define AFX_VISUALIZATION_H__BC001D31_AEF9_427D_A4A7_94E89BB54362__INCLUDED_

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

#ifndef ATLBASE_H
#include <atlbase.h>
#endif

#ifndef WINGRAPHVIZ_H
#include "WinGraphviz.h"
#endif

#include <iostream>

#define SVG 0
#define JPG 1
#define GIF 2
#define PNG 3
#define EMF 4

class CVisualization  
{
public:
	CVisualization();
	virtual ~CVisualization();

	void AddComment(CString strComment);
	void AddTable(CString strTableName,CStringArray &strArrayFields);
	void AddLink(CString strNodeOne, CString strNodeTwo, CString strLabel,CString strColor = "black");
	BOOL SaveToFile(int nImageFormat,BOOL bOpenFile);

private:

	IDOT *	m_pVisualization;
	CString m_strGraph;

private:

	BOOL Init();
	void CleanUp();

	void BeginTable(CString strTableName);
	void EndTable();

	void AddField(CString strFieldName);

	void Link(CString strNodeOne, CString strNodeTwo, CString strLabel,CString strColor);
};

#endif // !defined(AFX_VISUALIZATION_H__BC001D31_AEF9_427D_A4A7_94E89BB54362__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 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

VGirish
Founder
India India
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150427.4 | Last Updated 31 May 2006
Article Copyright 2006 by VGirish
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid