DICTClient
What is it?
DICTClient is a dict protocol library
written in C++. It was originally written to be plugged into the aspell spell checker.
DICTClient could be plugged into any other piece of software.
DICTClient used to be known as asdict.
Copyright
These routines are licensed for usage and redistribution under The GNU Library General Public License
How do I use it?
- Download the source and tar zxvf it. cd
into the DICTClient-* directory.
- Edit the Makefile to your needs. DICTClient comes with two test program
(test.cc, wordnet.cc) which explains how DICTClient could be used.
- DICTClient has the following methods:
- DICTClient() - Constructor
Argument: nothing
Description: The default constructor. Creates an DICTClient object
which is going to use the host dict.org:2628 as the dict server.
Example:
#include "DICTClient.hh"
.
.
.
DICTClient myDICTClient();
- DICTClient(cost char * host, int port) - Constructor
Argument: The first argument is a const char * and the second argument
is an int.
Description: Another constructor. This one creates an DICTClient
object with is going to use host:port as the dict server.
Example:
#include "DICTClient.h"
.
.
DICTClient myDICTClient("foo.fr", 2628);
- void setHost(const char * host, int port)
Argument: A const char * and an int.
Description: A method that could be used to change the dict server
after the DICTClient object has been created.
Example:
#include "DICTClient.h"
.
.
DICTClient myDICTClient("foo.fr", 2628);
.
.
myDICTClient.setHost("dict.org", 2628);
- The rest of the documentation is being written. In the meantime see
the example files that DICTClient ships with.
Software using DICTClient
The following software are known to use the DICTClient library:
Feedback
If you use this code, please email me your comments
and suggestions. Since this is purely voluntary work, any encouragement I
get goes a long way in motivating me to keep working on these.