Coder Social home page Coder Social logo

harinathsrinivasan / calculusprime-pnc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aposin/calculusprime-pnc

0.0 0.0 0.0 75 KB

rating engine for calculating insurance tariffs

License: Apache License 2.0

C++ 96.02% C 0.47% ANTLR 2.96% Batchfile 0.55%

calculusprime-pnc's Introduction

Calculus Prime P&C

This project provides a rating engine for calculating insurance tariffs.

Contents

Getting started

The basic directory layout is as follows:

  • antlr4 - ANTLR4 grammar and command file to generate C++ files
  • generated - The generated ANTLR4 C++ files will go here
  • include - Directory with C++ header files. Add this to the include paths of the project that uses Calculus Prime P&C
  • lib - Output directory for Windows builds
  • src - Directory with C++ source files
  • test - Directory with test cases

External dependencies

The following third party software is required to build Calculus Prime P&C:

Building instructions

Calculus Prime P&C is built as a static library which must be linked together with the build artifact that uses this library. Before the Calculus Prime P&C library can be built the C++ files for the ANTLR grammer have to be generated. This can be done by calling the script antlr/generate.cmd with the path to the ANTLR4 jar file as parameter, e.g. generate.cmd antlr-4.7-complete.jar. The java executable is required to run the ANTLR generator and should be found in the PATH environment variable.

Building on Windows

A Visual Studio 2017 solution file is provided (calculusprime.sln in the root folder). Several property sheets are provided where include paths and settings for third party libraries must be configured (antlr.props, boost.props, log4cplus.props in the root folder). In the property sheet calculusprime.props additional settings for the Calculus Prime P&C project that shall be shared among all build configurations can be configured. If the log4cplus library shall not be used the macro CALCULUSPRIME_NO_LOG4CPLUS has to be defined in this property sheet and in the project that uses the Calculus Prime P&C library.

The static libraries that are created by the Visual Studio build are placed in the lib/ directory in the root folder. The appropriate library (Debug/Release, x86/x64) has to be linked together with the build artifact that uses Calculus Prime P&C.

Building on Linux

An Eclipse 3.8 CDT project file is provided int the root folder. The include and linker paths for the third party libraries antlr, boost and log4cplus have to be configured in the project settings. If the log4cplus library shall not be used the macro CALCULUSPRIME_NO_LOG4CPLUS has to be defined in this project and in the project that uses the Calculus Prime P&C library.

While building a directory that has the same name as the build configuration (Debug or Release) is created in the root folder and contains the static library that is built. This library has to has to be linked together with the build artifact that uses Calculus Prime P&C.

License

This project is under the Apache License 2.0 - see the LICENSE file for details.

calculusprime-pnc's People

Contributors

aposin-bot 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.