本文整理汇总了C++中SWModule::Error方法的典型用法代码示例。如果您正苦于以下问题:C++ SWModule::Error方法的具体用法?C++ SWModule::Error怎么用?C++ SWModule::Error使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SWModule
的用法示例。
在下文中一共展示了SWModule::Error方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char **argv) {
SWMgr mgr;
SWModule *mod = mgr.getModule("KJVgb");
VerseKey *key1 = (VerseKey *)mod->CreateKey();
key1->Testament(2);
key1->Book(4);
key1->Chapter(2);
key1->Verse(3);
cout << "\n" << key1->getText() << ":\n\n";
ListKey keys;
keys << *key1;
cout << "\n" << keys.getRangeText() << ":\n\n";
ListKey keys2 = keys;
cout << "\n" << keys2.getRangeText() << ":\n\n";
keys = key1->ParseVerseList("Lk.4.5");
cout << "\n" << key1->getText() << ":\n\n";
key1->setText("jn.6.7");
cout << "\n" << key1->getText() << ":\n\n";
mod->setKey("lk.2.3");
cout << "\n" << mod->getKeyText() << ":\n" << endl;
cout << mod->getRawEntry() << endl;
cout << "\nListkey persist key iteration test\n\n";
keys = key1->ParseVerseList("mat1", 0, true);
for (keys = TOP; !keys.Error(); keys++) {
cout << "\n" << keys.getText() << ":\n" << endl;
}
keys.Persist(1);
mod->setKey(keys);
for ((*mod) = TOP; !mod->Error(); (*mod)++) {
cout << "\n" << mod->getKeyText() << ":\n" << endl;
}
delete key1;
return 0;
}
示例2: getModule
/*
* Class: org_crosswire_android_sword_SWModule
* Method: error
* Signature: ()C
*/
JNIEXPORT jchar JNICALL Java_org_crosswire_android_sword_SWModule_error
(JNIEnv *env, jobject me) {
init();
SWModule *module = getModule(env, me);
return (module) ? module->Error() : -99;
}