📄 webdict.hh
字号:
/*
* Copyright (C) 2002 Larry Cai -- <caiyu@yahoo.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* based on DICT RFC 2229 http://www.dict.org
use gSOAP to generate wsdl http://gsoap2.sourceforge.net
DiCT web service version 0.0.2
Changed:
0.0.2 SOAP Base64 is removed.
if it is used all the string should be base64,why not remove it.
actually I can't do it in java also.
see more http://webdict.sourceforge.net
*/
typedef char *xsd__string;
typedef long xsd__int;
class ns1__db
{
xsd__string number; // serial number
xsd__string name; // short name i.e. engtochs
xsd__string sdesc; // short description
xsd__string language; // supported language english->swedish
xsd__string strategy; // supported match strategy
// similar,prefix,exact ...
xsd__string type; // DICT , Yellow page,..?
// xsd__string phonetic_format
// xsd__string translation_format
};
class dbArray
{
public:
ns1__db *__ptr; // Array definition
int __size;
void print();
}
class getdatabaseResponse
{
dbArray dbs; // dbs array
xsd__string dictversion;// server DiCT version
xsd__string status; // not supported, old version..
};
class ns1__lookupResponse
{
xsd__string word; // matched word
xsd__string match; // matched or not
xsd__string phonetic; // phonetic (IPA,KK,.. ??)
xsd__string list; // match lists
xsd__string status; // DICT status code ?
xsd__string definition; // translation
};
//gsoap ns1 service name: webdict2
//gsoap ns1 service location: http://gnudict.sourceforge.net/cgi-bin/
//gsoap ns1 service namespace: urn:wdict
int ns1__getdatabase(
xsd__string client, // client name
xsd__string filter, // filter for language
xsd__string dictversion,// client DiCT version
getdatabaseResponse &result);
int ns1__lookup(
xsd__string db, // serial number of name ?
xsd__string word, // search word
xsd__string commands, // define,match combination
xsd__string strategy, // similar,prefix,exact
ns1__lookupResponse &result);
int ns1__status(
xsd__string query, // query context ?
struct ns1__statusResponse {
xsd__string status; //
} &result);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -