void HtmlHeaderMetadataItemVisitor::visitRole(Role& /*role*/) { emptyTitles(); addSummary(); addPrivileges(); addDDL(); }
void HtmlHeaderMetadataItemVisitor::visitGenerator(Generator& /*generator*/) { emptyTitles(); addSummary(); addDependencies(); addDDL(); }
void HtmlHeaderMetadataItemVisitor::visitException(Exception& /*exception*/) { emptyTitles(); addSummary(); addDependencies(); addDDL(); }
void HtmlHeaderMetadataItemVisitor::visitFunction(Function& /*function*/) { emptyTitles(); addSummary(); addDependencies(); addDDL(); }
void HtmlHeaderMetadataItemVisitor::visitTrigger(Trigger& /*trigger*/) { emptyTitles(); addSummary(); addDependencies(); addDDL(); }
void HtmlHeaderMetadataItemVisitor::visitProcedure(Procedure& /*procedure*/) { emptyTitles(); addSummary(); addPrivileges(); addDependencies(); addDDL(); }
void HtmlHeaderMetadataItemVisitor::visitDomain(Domain& /*domain*/) { emptyTitles(); addSummary(); // TODO: Support dependencies retrieval in MetadataItem::getDependencies(). //addDependencies(); addDDL(); }
void HtmlHeaderMetadataItemVisitor::visitDatabase(Database& database) { emptyTitles(); addSummary(); // database triggers have been introduced in Firebird 2.1 (ODS 11.1) if (database.getInfo().getODSVersionIsHigherOrEqualTo(11, 1)) addTriggers(); addDDL(); }
void HtmlHeaderMetadataItemVisitor::visitView(View& /*view*/) { emptyTitles(); addSummary(); addTriggers(); addPrivileges(); addDependencies(); addDDL(); }
void HtmlHeaderMetadataItemVisitor::visitTable(Table& /*table*/) { emptyTitles(); addSummary(); addConstraints(); addIndices(); addTriggers(); addPrivileges(); addDependencies(); addDDL(); }
int flagOptions::completeTrade(pair<string, equityT*> op, bool x){ int returnValue = 0; bool trueOrFalse = true; orderLine* buyer; unsigned int zero = 0; orderLine* seller; if(op.second->empty() == true || op.first.empty() == true){ return returnValue; } while(trueOrFalse){ trueOrFalse = false; if(op.second->blimit >= op.second->slimit){ buyer = op.second->buy.top(); seller = op.second->sell.top(); pp.first = buyer->client_name; pp.second = seller->client_name; if(x == true){ buyer->timestamp = buyer->position; seller->timestamp = seller->position; } if(buyer->position < seller->position) xx.second = buyer->price; else if(buyer->position >= seller->position) xx.second = seller->price; if(buyer->quantity <= seller->quantity){ xx.first = buyer->quantity; } else if(buyer->quantity > seller->quantity) xx.first = seller->quantity; seller->quantity = (seller->quantity - xx.first); buyer->quantity = (buyer->quantity - xx.first); printVerbose(buyer, seller,xx); if(buyer->quantity == zero) { op.second->buy.pop(); if(op.second->buy.empty()) { op.second->blimit = zero; } else{ int cost = op.second->buy.top()->price; op.second->blimit = cost; } } else if(seller->quantity == zero) { op.second->sell.pop(); if(op.second->sell.empty()) op.second->slimit = INT_MAX; else{ int cost = op.second->sell.top()->price; op.second->slimit = cost; } } int zeroo = 0; trueOrFalse = true; if(xx.first > zeroo){ returnValue = 1; //Add Transfers //Add Summary addSummary(); medianMap[op.first].insertMedian(xx.second); } } else trueOrFalse = false; } return returnValue; }