Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azriel91/template-class-design
Test design for a c++ module with templated classes
https://github.com/azriel91/template-class-design
Last synced: about 2 months ago
JSON representation
Test design for a c++ module with templated classes
- Host: GitHub
- URL: https://github.com/azriel91/template-class-design
- Owner: azriel91
- License: mit
- Created: 2014-03-01T04:58:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-01T09:47:03.000Z (almost 11 years ago)
- Last Synced: 2024-10-14T02:47:50.545Z (3 months ago)
- Language: C++
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
template-class-design
=====================Test design for a c++ module with templated classes. This project gives an example of using the interface-segregation principle to structure classes. In this project, consumers of an ``ImageStore`` are able to receive any implementation of it, without requiring knowledge of the actual type of image class that is used, while maintaining type safety of the ``Image`` class through templates.
## Pre-requisites
* g++ 4.8
* [maven 3](http://maven.apache.org/download.cgi)## Compiling
1. Install the google mock library.
1. Download [googlemock](https://code.google.com/p/googlemock/downloads/list) 1.7.0
2. Extract the google mock library, and drop this [pom.xml](https://github.com/azriel91/cpp-maven-support/blob/master/gmock/pom.xml) into the directory.
3. In the googlemock directory, run ``mvn install``
2. In the repository checkout directory, run ``mvn test``