Skip to content

A fast, simple and easy to use library to make simultaneous progress/loading bars in C++

Notifications You must be signed in to change notification settings

keybraker/libloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libloader

A simple, easy to use library to make simultaneous progress, loading bars in c++

alt text

Installation

  1. Open a terminal and clone library wherever you desire and move there

    $ git clone https://github.com/keybraker/libloader.git && cd libloader
  2. Create library

    1. for use in current direcotry
    $ make lib
    1. for use globally (moves to root path so you can access it from anywhere)
    $ make lib-root

Usage

Linking library to you projects is done in two easy steps

  1. if library is in custom path

    1. include libloader inside a cpp file you are using it:
    #include "custom_path/libloader.h"
    1. link loader library at compile time:
    $ g++ -Wall -o loading src/exp_loading_bar.cpp -L. -lloader
  2. if library is in root path

    1. include libloader inside a cpp file you are using it:
    #include <libloader.h>
    1. ilink loader library at compile time:
    $ g++ -Wall -o loading src/exp_loading_bar.cpp -I/usr/local/include -L/usr/local/lib -lloader

note that -L is the linking flag for L_ibraries_ and what follows is the path to find it

Demo

  1. exp_loading_bar.cpp

    $ make loading

Loading bar is a bar with moving dots representing progress. Percentage with elapsed time is shown and dynamically changed from seconds to minutes.

  1. exp_progress_bar.cpp

    $ make progress

    Progress bar is a bar with '=' characters increasing as process nears completion. Percentage with elapsed time is shown and dynamically changed from seconds to minutes.

  2. exp_pingpong_bar.cpp

    $ make pingpong

    Ping Pong is a table indicating processing but not percentage of completion. Percentage with elapsed time is shown and dynamically changed from seconds to minutes.

About

A fast, simple and easy to use library to make simultaneous progress/loading bars in C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published