Skip to content

Update Log

Mister Mjir edited this page Dec 31, 2019 · 4 revisions

These updates are only a general update of what changed, to see how certain changes work in detail refer to the Wiki page to what you are looking for. If you want to see changes in more detail, compare two commits.

2.3.0

General

The table data is now in a separate .csv file in the res folder. There is a new readCSV() function in utility.h that will put each value into a string vector.

Macros

Added PTABLE prefix to all the ifndef and define preprocessor directives.

VECOTR_STR macro added

2.2.0

General

Fixed 'strange' output from 2.1.1 (uint8_t is treated as a char so needed to cast most of the uses of it to int)

New Macros!

  • METHOD_ARGS can be used instead of const std::vector<std::string> &
  • STR_PARAM can be used instead of const std::string &

2.1.1

General

Fixed crash from 2.1.0. Cleaned up code.

Element Changes

Now uses int8_t and uint8_t to have a lower memory footprint.

2.1.0

Added radius and extended compare to support radius.

2.0.0

Made pTable a shared library. Added electronegativity and a compare command to compare properties.

1.1.0

General

findElement is now display. It is not case sensitive for the element name but is for the element symbol. It also displays if an Element is an lanthanide or an actinide instead of -1 and -2.

Utility header file

Contains utility functions (created for better code organization).

New method struct

Inspired by Python method tables. Table methods the user will call from the terminal will now all be void functions with a vector<std::string> args parameter. There will still be other utility methods but this will make it easier to manage all the table methods.

Element changes

  • Added electronegativity property

Table changes

  • Table is now a static class
    • Call Table::init() before using a Table method and call Table::close() before your program ends
  • printElement() now takes an Element* argument instead of a vector<std::string>
  • New getElement() function
  • New help command (it is called helpHelp() because commands other than 'help' and 'exit' will have a help argument to display help)
  • 'addElement()' utility method and 'addElements()' utility method
  • Matching methods for 'methods' just like elements

1.0.0

First Release

Clone this wiki locally