• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ GWEN_NEW_OBJECT函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中GWEN_NEW_OBJECT函数的典型用法代码示例。如果您正苦于以下问题:C++ GWEN_NEW_OBJECT函数的具体用法?C++ GWEN_NEW_OBJECT怎么用?C++ GWEN_NEW_OBJECT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了GWEN_NEW_OBJECT函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: assert

AIO_OFX_GROUP *AIO_OfxGroup_INVACC_new(const char *groupName,
                                       AIO_OFX_GROUP *parent,
                                       GWEN_XML_CONTEXT *ctx)
{
  AIO_OFX_GROUP *g;
  AIO_OFX_GROUP_INVACC *xg;

  /* create base group */
  g=AIO_OfxGroup_Generic_new(groupName, parent, ctx);
  assert(g);

  GWEN_NEW_OBJECT(AIO_OFX_GROUP_INVACC, xg);
  assert(xg);
  GWEN_INHERIT_SETDATA(AIO_OFX_GROUP, AIO_OFX_GROUP_INVACC, g, xg,
                       AIO_OfxGroup_INVACC_FreeData);

  /* set virtual functions */
  AIO_OfxGroup_SetStartTagFn(g, AIO_OfxGroup_INVACC_StartTag);
  AIO_OfxGroup_SetAddDataFn(g, AIO_OfxGroup_INVACC_AddData);

  if (strcasecmp(groupName, "INVACCTFROM")==0 ||
      strcasecmp(groupName, "INVACCTTO")==0)
    xg->accType=strdup("INVESTMENT");
  return g;
}
开发者ID:cstim,项目名称:aqbanking,代码行数:25,代码来源:g_invacc.c


示例2: GWEN_NEW_OBJECT

GWEN_LIBLOADER *GWEN_LibLoader_new(void)
{
  GWEN_LIBLOADER *h;

  GWEN_NEW_OBJECT(GWEN_LIBLOADER, h);
  return h;
}
开发者ID:cstim,项目名称:gwenhywfar,代码行数:7,代码来源:libloader.c


示例3: GWEN_NEW_OBJECT

GWEN_PARAM *GWEN_Param_new(void)
{
  GWEN_PARAM *p_struct;

  GWEN_NEW_OBJECT(GWEN_PARAM, p_struct)
  p_struct->_refCount=1;
  GWEN_LIST_INIT(GWEN_PARAM, p_struct)
  GWEN_TREE_INIT(GWEN_PARAM, p_struct)
  /* members */
  p_struct->name=NULL;
  p_struct->flags=0;
  p_struct->type=GWEN_Param_Type_Unknown;
  p_struct->dataType=GWEN_Param_DataType_Unknown;
  p_struct->shortDescription=NULL;
  p_struct->longDescription=NULL;
  p_struct->currentValue=NULL;
  p_struct->defaultValue=NULL;
  p_struct->choices=NULL;
  p_struct->internalIntValue=0;
  p_struct->internalFloatValue=0;
  p_struct->runtimeFlags=0;
  /* virtual functions */

  return p_struct;
}
开发者ID:cstim,项目名称:gwenhywfar,代码行数:25,代码来源:param.c


示例4: GWEN_NEW_OBJECT

GWEN_GUI_CPROGRESS *GWEN_Gui_CProgress_new(GWEN_GUI *gui,
                                           uint32_t id,
                                           uint32_t progressFlags,
                                           const char *title,
                                           const char *text,
                                           uint64_t total)
{
  GWEN_GUI_CPROGRESS *cp;

  GWEN_NEW_OBJECT(GWEN_GUI_CPROGRESS, cp);
  GWEN_LIST_INIT(GWEN_GUI_CPROGRESS, cp);
  cp->gui=gui;
  cp->id=id;
  cp->startTime=time(0);
  cp->flags=progressFlags;
  if (title)
    cp->title=strdup(title);
  if (text)
    cp->text=strdup(text);
  cp->total=total;
  cp->logBuf=GWEN_Buffer_new(0, 256, 0, 1);

  if (!(cp->flags & GWEN_GUI_PROGRESS_DELAY)) {
    GWEN_Gui_StdPrintf(gui, stderr, "===== %s =====\n", title);
    cp->shown=1;
  }

  return cp;
}
开发者ID:cstim,项目名称:gwenhywfar,代码行数:29,代码来源:cprogress.c


示例5: GWEN_NEW_OBJECT

AB_PROVIDER *APY_Provider_new(AB_BANKING *ab)
{
  AB_PROVIDER *pro;
  APY_PROVIDER *xp;

  pro=AB_Provider_new(ab, APY_PROVIDER_NAME);
  GWEN_NEW_OBJECT(APY_PROVIDER, xp);
  GWEN_INHERIT_SETDATA(AB_PROVIDER, APY_PROVIDER, pro, xp,
                       APY_Provider_FreeData);


  AB_Provider_SetInitFn(pro, APY_Provider_Init);
  AB_Provider_SetFiniFn(pro, APY_Provider_Fini);

  AB_Provider_SetCreateAccountObjectsFn(pro, APY_Provider_CreateAccountObject);
  AB_Provider_SetCreateUserObjectsFn(pro, APY_Provider_CreateUserObject);

  AB_Provider_SetControlFn(pro, APY_Control);

  AB_Provider_SetGetNewUserDialogFn(pro, APY_Provider_GetNewUserDialog);
  AB_Provider_SetGetEditUserDialogFn(pro, APY_Provider_GetEditUserDialog);

  AB_Provider_AddFlags(pro,
                       AB_PROVIDER_FLAGS_HAS_EDITUSER_DIALOG |
                       AB_PROVIDER_FLAGS_HAS_NEWUSER_DIALOG);

  return pro;
}
开发者ID:cstim,项目名称:aqbanking,代码行数:28,代码来源:provider.c


示例6: GWEN_NEW_OBJECT

GWEN_TIME *GWEN_Time_fromSeconds(uint32_t secs) {
  GWEN_TIME *t;

  GWEN_NEW_OBJECT(GWEN_TIME, t);
  t->secs=secs;
  return t;
}
开发者ID:Zauberstuhl,项目名称:gwenhywfar,代码行数:7,代码来源:gwentime_all.c


示例7: GWEN_NEW_OBJECT

GWEN_DATE_TMPLCHAR *GWEN_DateTmplChar_new(char c) {
  GWEN_DATE_TMPLCHAR *e;

  GWEN_NEW_OBJECT(GWEN_DATE_TMPLCHAR, e);
  GWEN_LIST_INIT(GWEN_DATE_TMPLCHAR, e);
  e->character=c;
  switch(c) {
  case 'Y':
    e->maxCount=4;
    break;
  case 'M':
    e->maxCount=2;
    break;
  case 'D':
    e->maxCount=2;
    break;
  case 'W':
    e->maxCount=1;
    break;
  case 'w':
  default:
    e->maxCount=GWEN_DATE_TMPL_MAX_COUNT;
    break;
  }

  return e;
}
开发者ID:Zauberstuhl,项目名称:gwenhywfar,代码行数:27,代码来源:gwendate.c


示例8: GWEN_NEW_OBJECT

AB_PROVIDER *EBC_Provider_new(AB_BANKING *ab){
  AB_PROVIDER *pro;
  EBC_PROVIDER *dp;

  pro=AB_Provider_new(ab, "aqebics");
  GWEN_NEW_OBJECT(EBC_PROVIDER, dp);
  GWEN_INHERIT_SETDATA(AB_PROVIDER, EBC_PROVIDER, pro, dp,
                       EBC_Provider_FreeData);
  dp->bankingJobs=AB_Job_List2_new();
  dp->queue=EBC_Queue_new();

  AB_Provider_SetInitFn(pro, EBC_Provider_Init);
  AB_Provider_SetFiniFn(pro, EBC_Provider_Fini);
  AB_Provider_SetUpdateJobFn(pro, EBC_Provider_UpdateJob);
  AB_Provider_SetAddJobFn(pro, EBC_Provider_AddJob);
  AB_Provider_SetExecuteFn(pro, EBC_Provider_Execute);
  AB_Provider_SetResetQueueFn(pro, EBC_Provider_ResetQueue);
  AB_Provider_SetExtendUserFn(pro, EBC_Provider_ExtendUser);
  AB_Provider_SetExtendAccountFn(pro, EBC_Provider_ExtendAccount);

  AB_Provider_SetGetEditUserDialogFn(pro, EBC_Provider_GetEditUserDialog);
  AB_Provider_AddFlags(pro, AB_PROVIDER_FLAGS_HAS_EDITUSER_DIALOG);

  AB_Provider_SetGetNewUserDialogFn(pro, EBC_Provider_GetNewUserDialog);
  AB_Provider_AddFlags(pro, AB_PROVIDER_FLAGS_HAS_NEWUSER_DIALOG);


  return pro;
}
开发者ID:Zauberstuhl,项目名称:aqbanking,代码行数:29,代码来源:provider.c


示例9: AB_ImExporterAccountInfo_dup

AB_IMEXPORTER_ACCOUNTINFO*
AB_ImExporterAccountInfo_dup(const AB_IMEXPORTER_ACCOUNTINFO *oi) {
  AB_IMEXPORTER_ACCOUNTINFO *iea;

  GWEN_NEW_OBJECT(AB_IMEXPORTER_ACCOUNTINFO, iea);
  GWEN_LIST_INIT(AB_IMEXPORTER_ACCOUNTINFO, iea);

#define COPY_CHAR(NAME) \
  if (oi->NAME) \
    iea->NAME=strdup(oi->NAME);
  COPY_CHAR(bankCode);
  COPY_CHAR(bankName);
  COPY_CHAR(accountNumber);
  COPY_CHAR(accountName);
  COPY_CHAR(iban);
  COPY_CHAR(bic);
  COPY_CHAR(owner);
  COPY_CHAR(currency);
  COPY_CHAR(description);
  iea->accountType=oi->accountType;
#undef COPY_CHAR
  iea->accountId=oi->accountId;

  iea->accStatusList=AB_AccountStatus_List_dup(oi->accStatusList);
  iea->transactions=AB_Transaction_List_dup(oi->transactions);
  iea->standingOrders=AB_Transaction_List_dup(oi->standingOrders);
  iea->transfers=AB_Transaction_List_dup(oi->transfers);
  iea->datedTransfers=AB_Transaction_List_dup(oi->datedTransfers);
  iea->notedTransactions=AB_Transaction_List_dup(oi->notedTransactions);
  return iea;
}
开发者ID:Zauberstuhl,项目名称:aqbanking,代码行数:31,代码来源:imexporter.c


示例10: assert

AIO_OFX_GROUP *AIO_OfxGroup_STATUS_new(const char *groupName,
                                       AIO_OFX_GROUP *parent,
                                       GWEN_XML_CONTEXT *ctx,
                                       const char *description)
{
  AIO_OFX_GROUP *g;
  AIO_OFX_GROUP_STATUS *xg;

  /* create base group */
  g=AIO_OfxGroup_Generic_new(groupName, parent, ctx);
  assert(g);

  GWEN_NEW_OBJECT(AIO_OFX_GROUP_STATUS, xg);
  assert(xg);
  GWEN_INHERIT_SETDATA(AIO_OFX_GROUP, AIO_OFX_GROUP_STATUS, g, xg,
                       AIO_OfxGroup_STATUS_FreeData);

  if (description)
    xg->description=strdup(description);

  /* set virtual functions */
  AIO_OfxGroup_SetStartTagFn(g, AIO_OfxGroup_STATUS_StartTag);
  xg->oldEndTagFn=AIO_OfxGroup_SetEndTagFn(g, AIO_OfxGroup_STATUS_EndTag);
  AIO_OfxGroup_SetAddDataFn(g, AIO_OfxGroup_STATUS_AddData);

  return g;
}
开发者ID:cstim,项目名称:aqbanking,代码行数:27,代码来源:g_status.c


示例11: assert

GWEN_XML_CONTEXT *AIO_OfxXmlCtx_new(uint32_t flags, AB_IMEXPORTER_CONTEXT *ioContext) {
  GWEN_XML_CONTEXT *ctx;
  AIO_OFX_XMLCTX *xctx;
  AIO_OFX_GROUP *g;

  /* create base object */
  ctx=GWEN_XmlCtx_new(flags);
  assert(ctx);

  /* create and assign extension */
  GWEN_NEW_OBJECT(AIO_OFX_XMLCTX, xctx);
  assert(xctx);
  GWEN_INHERIT_SETDATA(GWEN_XML_CONTEXT, AIO_OFX_XMLCTX, ctx, xctx,
		       AIO_OfxXmlCtx_FreeData);
  xctx->ioContext=ioContext;

  /* set virtual functions */
  GWEN_XmlCtx_SetStartTagFn(ctx, AIO_OfxXmlCtx_StartTag);
  GWEN_XmlCtx_SetEndTagFn(ctx, AIO_OfxXmlCtx_EndTag);
  GWEN_XmlCtx_SetAddDataFn(ctx, AIO_OfxXmlCtx_AddData);
  GWEN_XmlCtx_SetAddCommentFn(ctx, AIO_OfxXmlCtx_AddComment);
  GWEN_XmlCtx_SetAddAttrFn(ctx, AIO_OfxXmlCtx_AddAttr);

  /* create initial group */
  g=AIO_OfxGroup_Document_new("OFX_FILE", NULL, ctx);
  assert(g);
  AIO_OfxXmlCtx_SetCurrentGroup(ctx, g);


  /* return base object */
  return ctx;
}
开发者ID:Zauberstuhl,项目名称:aqbanking,代码行数:32,代码来源:ofxxmlctx.c


示例12: GWEN_NEW_OBJECT

AB_VALUE *AB_Value_new(void) {
  AB_VALUE *v;

  GWEN_NEW_OBJECT(AB_VALUE, v);
  GWEN_LIST_INIT(AB_VALUE, v);
  mpq_init(v->value);
  return v;
}
开发者ID:Zauberstuhl,项目名称:aqbanking,代码行数:8,代码来源:value.c


示例13: GWEN_NEW_OBJECT

LC_STARCOS_KEYDESCR *LC_Starcos_KeyDescr_new() {
  LC_STARCOS_KEYDESCR *st;

  GWEN_NEW_OBJECT(LC_STARCOS_KEYDESCR, st)
  st->_usage=1;
  GWEN_LIST_INIT(LC_STARCOS_KEYDESCR, st)
  return st;
}
开发者ID:aqbanking,项目名称:libchipcard,代码行数:8,代码来源:starcos_keydescr.c


示例14: GWEN_NEW_OBJECT

GWEN_POINTERLIST *GWEN_PointerList_new(void) {
  GWEN_POINTERLIST *idl;

  GWEN_NEW_OBJECT(GWEN_POINTERLIST, idl);
  idl->refCount=1;
  idl->tableStep=GWEN_POINTERLIST_DEFAULT_STEP;
  return idl;
}
开发者ID:Zauberstuhl,项目名称:gwenhywfar,代码行数:8,代码来源:pointerlist.c


示例15: GWEN_NEW_OBJECT

GWEN_TLV *GWEN_TLV_new(void) {
  GWEN_TLV *tlv;

  GWEN_NEW_OBJECT(GWEN_TLV, tlv);
  GWEN_LIST_INIT(GWEN_TLV, tlv);

  return tlv;
}
开发者ID:Zauberstuhl,项目名称:gwenhywfar,代码行数:8,代码来源:tlv.c


示例16: assert

GWEN_LOGGER_DOMAIN *GWEN_LoggerDomain_new(const char *name) {
  GWEN_LOGGER_DOMAIN *ld;

  assert(name);
  GWEN_NEW_OBJECT(GWEN_LOGGER_DOMAIN, ld);
  ld->name=strdup(name);
  return ld;
}
开发者ID:aqbanking,项目名称:gwenhywfar,代码行数:8,代码来源:logger.c


示例17: GWEN_NEW_OBJECT

GWEN_REFPTR_INFO *GWEN_RefPtrInfo_new(void) {
  GWEN_REFPTR_INFO *rpi;

  GWEN_NEW_OBJECT(GWEN_REFPTR_INFO, rpi);
  rpi->refCount=1;

  return rpi;
}
开发者ID:Zauberstuhl,项目名称:gwenhywfar,代码行数:8,代码来源:refptr.c


示例18: GWEN_NEW_OBJECT

GWEN_CRYPTMGR *GWEN_CryptMgr_new(void) {
  GWEN_CRYPTMGR *cm;

  GWEN_NEW_OBJECT(GWEN_CRYPTMGR, cm);
  GWEN_INHERIT_INIT(GWEN_CRYPTMGR, cm);

  return cm;
}
开发者ID:Zauberstuhl,项目名称:gwenhywfar,代码行数:8,代码来源:cryptmgr.c


示例19: GWEN_NEW_OBJECT

LC_HI_PERSONAL_DATA *LC_HIPersonalData_new() {
  LC_HI_PERSONAL_DATA *st;

  GWEN_NEW_OBJECT(LC_HI_PERSONAL_DATA, st)
  st->_usage=1;
  GWEN_LIST_INIT(LC_HI_PERSONAL_DATA, st)
  return st;
}
开发者ID:aqbanking,项目名称:libchipcard,代码行数:8,代码来源:hipersonaldata.c


示例20: GWEN_NEW_OBJECT

AB_BANKINFO *AB_BankInfo_new(void) {
  AB_BANKINFO *st;

  GWEN_NEW_OBJECT(AB_BANKINFO, st)
  st->_usage=1;
  GWEN_LIST_INIT(AB_BANKINFO, st)
  st->services=AB_BankInfoService_List_new();
  return st;
}
开发者ID:Zauberstuhl,项目名称:aqbanking,代码行数:9,代码来源:bankinfo.c



注:本文中的GWEN_NEW_OBJECT函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GWidgetGetControl函数代码示例发布时间:2022-05-30
下一篇:
C++ GWEN_INHERIT_GETDATA函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap