Unoffical C++ API for dict.cc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Maximilian Stiefel 69efe5b7ae Added Dutch. 5 years ago
dict Added Dutch. 5 years ago
doc Improved design patter and added Doxyfile. 6 years ago
.gitignore Made it easier to access shared pointer to translations. 6 years ago
Makefile Added Dutch. 5 years ago
README.md Improved design patter and added Doxyfile. 6 years ago
dict.h Improved design patter and added Doxyfile. 6 years ago
dictcc.cc Added Dutch. 5 years ago

README.md

Unoffical C++ API for dict.cc

Prequisites

curl and curlpp have to be installed on the system.

Installation

So far only a quick and dirty solution is available:

bash compile_and_install_ubuntu.sh

Works definitely under Ubuntu, other OS unsure and untested. CMake file will follow.

Usage of the CLI

Type

dictcc -h

Usage of the Library

An example of how the library is supposed to be used is given with the CLI (dictcc.cc). The following code creates a dictionary and performs a search.

#include "dict.h"

...

dictionary = dictcc::creator::create(lang);
result = dictionary->search(search_chr);

dictcc::creator::create takes a string e.g. DESV and returns a std::smart_ptr to a dictionary object. The return value of the search function is a smart pointer to a std::pair of two string vectors, each corresponding to one language.