Click here to Skip to main content
15,881,812 members
Articles / Programming Languages / C++

Using Patterns to Reduce Compilation Dependencies in Large Scale C++ Project: Factory Pattern

Rate me:
Please Sign up or sign in to vote.
4.09/5 (7 votes)
31 May 2011CPOL8 min read 23.6K   864   13  
A discussion of some techniques which are useful to minimize the compilation time during development
#pragma once

#include <string>

class __declspec(dllexport) Database
{
public:
	Database(void);
	virtual ~Database(void);
	virtual bool OpenConnection(std::string connectionString) = 0;
	virtual void CloseConnection(void) = 0;
	virtual void ExecuteCommand(std::string command) = 0;
};

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
Team Leader American Institute for Research
United States United States
Working as a Team leader in American Institute for Research

Comments and Discussions