Code Monkey home page Code Monkey logo

bankingsystem's Introduction

BankingSystem

BankingSystem is a command line program that stores client information and allows clients to perform transactions on their accounts.

The project directory is organized as follows

.
├── build
├── CMakeLists.txt
├── Doxyfile
├── libs
│   ├── libboost_serialization.a
│   └── libboost_unit_test_framework.a
├── README.md
├── source
│   ├── Account.cpp
│   ├── Account.h
│   ├── BankManager.cpp
│   ├── BankManager.h
│   ├── banksystem.cpp
│   ├── ChequingAccount.cpp
│   ├── ChequingAccount.h
│   ├── Client.cpp
│   ├── Client.h
│   ├── Date.cpp
│   ├── Date.h
│   ├── Person.cpp
│   ├── Person.h
│   ├── SavingsAccount.cpp
│   └── SavingsAccount.h
└── test
    ├── build
    ├── CMakeLists.txt
    ├── testAccount.cpp
    ├── testBank.cpp
    ├── testClient.cpp
    ├── testDate.cpp
    └── testPerson.cpp

Dependencies

  • boost c++ libraries

This program uses the Boost Serialization library to store all client information in binary format.

boost::serialization

friend class boost::serialization::access;
template<class Archive>
void save(Archive &ar, const uint version) const {
    ar.register_type(static_cast<Client*>(NULL));
    ar & bankName;
    ar & filename;
    ar & clients;
}

Getting Started

In order to compile and run program using cmake, simply follow the instructions below.

Inside CMakeLists.txt,

Change path to boost directory

include_directories(<path to boost directory>)

Change path to boost serialization library

SET_TARGET_PROPERTIES(boost_serialization PROPERTIES 
    IMPORTED_LOCATION <path to boost serialisation library>)

Generate Makefile using cmake,

$ mkdir build
$ cd build
$ cmake ..

Now compile and run

$ make
$ ./banksystem

This program has been tested on Linux Mint.

UML class diagrams were generated using Doxygen and can be viewed here: UML Class Diagram

View demo

View Demo

License

The MIT License (MIT)

Copyright (c) 2019 Steven Peters

bankingsystem's People

Contributors

skp17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.