A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/wsdlstr_8cpp_source.html below:

NCBI C++ ToolKit: src/serial/datatool/wsdlstr.cpp Source File

49  const string

& externalName,

const string

& className,

51

:

CParent

(externalName, className, namespaceName, dataType, comments)

64  " "

<<className<<

"(void);\n"

;

76  return out

<<

'~'

<<className<<

"(void);\n" 82  string

httpclient(

"CSoapHttpClient"

);

86

codeClassName +=

"_Base"

;

88  code

.HPPIncludes().insert(

"serial/soap/soap_client"

);

90  string

methodPrefix =

code

.GetMethodPrefix();

98

methodPrefix, haveUserClass,

ctx

.GetMethodPrefix());

103  if

(

i

->dataType->IsStdType() &&

i

->externalName ==

"#location"

) {

109  "// constructor\n"

<<

110

methodPrefix<<codeClassName<<

"(void)\n"

;

112  " : "

<< httpclient <<

"(\n"

;

119  code

.WriteConstructionCode(methods);

126

methodPrefix<<

"~"

<<codeClassName<<

"(void)\n" 128  code

.WriteDestructionCode(methods);

142

list<CWsdlTypeStrings::TMembers::const_iterator>& container,

148  const string

& name = (*mi)->GetName();

150  if

(!

x_WsdlDataType

(ii->dataType) && ii->externalName == name) {

151

container.push_back(ii);

159  if

(

i

->ref &&

i

->dataType) {

160  return dynamic_cast<const CNullDataType

*

>

(

i

->dataType->Resolve()) != 0;

167  const string

& methodPrefix,

bool

,

168  const string

&

)

const 170  string

ncbiNamespace =

178  if

(!

type

&&

i

->externalName !=

"#location"

) {

180  i

->type->GeneratePointerTypeCode(

code

);

183  i

->type->GenerateTypeCode(

code

);

197  string

soapaction(

""

);

198

list<TMembers::const_iterator> headerinputs;

199

list<TMembers::const_iterator> inputs;

200

list<TMembers::const_iterator> headeroutputs;

201

list<TMembers::const_iterator> outputs;

208  if

(

st

->IsStdType() &&

st

->GetMemberName() ==

"#soapaction"

&&

st

->GetDataMember()) {

209

soapaction =

st

->GetDataMember()->GetDefault()->GetXmlString();

234  string

methodRet(

"void"

);

235

list<string> methodOut;

237  size_t

out_total = headeroutputs.size() + outputs.size();

239  ITERATE

( list<TMembers::const_iterator>,

out

, headeroutputs) {

241  string

reg(

"RegisterObjectType("

);

242

reg += (*out)->type->GetCType(

code

.GetNamespace());

243

reg +=

"::GetTypeInfo);"

;

245  string

out_param = ncbiNamespace +

"CConstRef< "

+

246

(*out)->type->GetCType(

code

.GetNamespace()) +

" >"

;

247  if

(out_total == 1) {

248

methodRet = out_param;

251

methodOut.push_back(out_param);

254  ITERATE

( list<TMembers::const_iterator>,

out

, outputs) {

256  string

reg(

"RegisterObjectType("

);

257

reg += (*out)->type->GetCType(

code

.GetNamespace());

258

reg +=

"::GetTypeInfo);"

;

260  string

out_param = ncbiNamespace +

"CConstRef< "

+

261

(*out)->type->GetCType(

code

.GetNamespace()) +

" >"

;

262  if

(out_total == 1) {

263

methodRet = out_param;

266

methodOut.push_back(out_param);

270  string

separator(

"\n "

);

271  string

hpp_separator(

"\n "

);

272  string

comma_separator =

","

+ separator;

273  string

commahpp_separator =

","

+ hpp_separator;

274  string

inout_separator =

","

+ separator;

275  string

inouthpp_separator =

","

+ hpp_separator;

276  if

(methodOut.empty()) {

277

inout_separator =

""

;

278

inouthpp_separator =

""

;

282

list<string> methodIn;

283

list<string> methodInNull;

284  int

in_counter=0, hin_counter=0;

285  ITERATE

( list<TMembers::const_iterator>,

in

, headerinputs) {

287  string

in_type((*in)->type->GetCType(

code

.GetNamespace()));

290

methodInNull.push_back(in_type +

" "

+ in_name +

";"

);

291

methodInNull.push_back(in_name +

".Set();"

);

293

methodIn.push_back(

string

(

"const "

) + in_type +

"& "

+ in_name);

296

hin_counter = in_counter;

297  ITERATE

( list<TMembers::const_iterator>,

in

, inputs) {

299  string

in_type((*in)->type->GetCType(

code

.GetNamespace()));

302

methodInNull.push_back(in_type +

" "

+ in_name +

";"

);

303

methodInNull.push_back(in_name +

".Set();"

);

305

methodIn.push_back(

string

(

"const "

) + in_type +

"& "

+ in_name);

309

ncbiNamespace +

"CConstRef< "

+ ncbiNamespace +

"CSoapFault"

+

" >* fault"

);

313  i

->comments.PrintHPPMember(header);

315

<< methodRet << separator <<

i

->externalName <<

"("

;

316

header << hpp_separator

318

<< inouthpp_separator

320

<<

" = 0) const;\n"

;

325

<< methodPrefix <<

i

->externalName <<

"("

;

331  if

(!methodInNull.empty()) {

336

<< ncbiNamespace <<

"CSoapMessage request, response;"

;

337  for

(

int

p=1; p <= in_counter; ++p) {

339

<<

"request.AddObject( in"

<< p

340

<<

", "

<< ncbiNamespace;

341  if

(p <= hin_counter) {

342

methods <<

"CSoapMessage::eMsgHeader"

;

344

methods <<

"CSoapMessage::eMsgBody"

;

348

methods << separator <<

"Invoke(response,request,fault"

;

349  if

(!soapaction.empty()) {

350

methods <<

","

<<

"\""

<< soapaction <<

"\""

;

354  ITERATE

( list<TMembers::const_iterator>,

out

, headeroutputs) {

356

methods << separator;

357  if

(out_total == 1) {

358

methods <<

"return "

;

360

methods <<

"out"

<< out_counter <<

" = "

;

363

<< ncbiNamespace <<

"SOAP_GetKnownObject< " 364

<< (*out)->type->GetCType(

code

.GetNamespace())

365

<<

" >(response, "

<< ncbiNamespace <<

"CSoapMessage::eMsgHeader);"

;

367  ITERATE

( list<TMembers::const_iterator>,

out

, outputs) {

369

methods << separator;

370  if

(out_total == 1) {

371

methods <<

"return "

;

373

methods <<

"out"

<< out_counter <<

" = "

;

376

<< ncbiNamespace <<

"SOAP_GetKnownObject< " 377

<< (*out)->type->GetCType(

code

.GetNamespace())

378

<<

" >(response, "

<< ncbiNamespace <<

"CSoapMessage::eMsgBody);"

;

380

methods <<

"\n}\n\n"

;

383  code

.AddConstructionCode(*reg);

list< SMemberInfo > TMembers

bool HaveUserClass(void) const

const string & GetClassNameDT(void) const

const TMembers & GetMembers(void) const

list< AutoPtr< CDataMember > > TMembers

static const CNamespace KNCBINamespace

void BeginClassDeclaration(CClassContext &ctx) const

const string & GetNamespaceName(void) const

EType GetWsdlType(void) const

CWsdlTypeStrings(const string &externalName, const string &className, const string &namespaceName, const CDataType *dataType, const CComments &comments)

virtual void GenerateClassCode(CClassCode &code, CNcbiOstream &setters, const string &methodPrefix, bool haveUserClass, const string &classPrefix) const override

virtual void GenerateTypeCode(CClassContext &ctx) const override

iterator_bool insert(const value_type &val)

std::ofstream out("events_result.xml")

main entry point for tests

static const char location[]

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

static string Join(const TContainer &arr, const CTempString &delim)

Join strings using the specified delimiter.

std::istream & in(std::istream &in_, double &x_)

static SLJIT_INLINE sljit_ins st(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

static CNcbiOstream & DeclareDestructor(CNcbiOstream &out, const string className, bool virt)

static bool x_IsNullDataType(CWsdlTypeStrings::TMembers::const_iterator i)

static CNcbiOstream & DeclareConstructor(CNcbiOstream &out, const string className)

static void x_CollectMembers(list< CWsdlTypeStrings::TMembers::const_iterator > &container, const CWsdlDataType *memb_type, const CWsdlTypeStrings::TMembers &members)

static const CWsdlDataType * x_WsdlDataType(const CDataType *type)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4