Giter Club home page Giter Club logo

eetpp's Introduction

Implementace EET v c++

Knihovna je inspirována implementací EET v Javě a je licencován pod GNU LESSER GENERAL PUBLIC Version 3.

Libeetpp používá knihovny OpenSSL a libcurl.

Dokumentace

Dokumentace k projektu je dostupná tady.

Kompilace knihovny

cd eetpp
mdkir build
cd build
cmake ..
sudo make install

Vyžaduje kompiler s podporou ISO C++ 2011 standardu

Příklad

eettest.cpp

#include "eet.h"
#include <iostream>

int main(int argc, char **argv)
{
    Eet eet("CZ1212121218", 21, "./EET_CA1_Playground-CZ1212121218.p12", "eet", "Pokladna 1");
    eet.setPlayground(true);
    EETCODE ret = eet.sendTrzba(EetData("1234/2016", 1113.0));
    if(ret == EET_OK || ret == EET_VAROVANI)
    {
        std::cout << "PKP: "<< eet.getPkp() << std::endl;
        std::cout << "BKP: "<< eet.getBkp() << std::endl;
        std::cout << "FIK: "<< eet.getFik() << std::endl;
        if(ret == EET_VAROVANI) std::cerr << eet.getVarovani() << std::endl;
    }
    else
    {
        std::cerr << eet.getChyba() << std::endl;
    }
    return 0;
}

Kompilace

c++ -o eettest eettest.cpp -lssl -lcrypto -lcurl -leetpp

Knihovna přilinkována

c++ -o eettest eettest.cpp eet.cpp -lssl -lcrypto -lcurl

Soubory knihovny nakopírovány do projektu

Plány

  • zapracovat případné požadavky uživatelů
  • sledovat změny v požadavcích EET a implementovat je

eetpp's People

Contributors

archdvx avatar michalfapso avatar

Stargazers

 avatar Jindřiška avatar

Watchers

 avatar  avatar

Forkers

michalfapso

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.