Changeset 532b6fb in tol


Ignore:
Timestamp:
Jun 24, 2010, 1:44:31 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
5129d30
Parents:
db38740
Message:

Refs #921
Using new method CheckNonDeclarativeAction

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2309 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol/btol/bdb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/bdb/bdb.cpp

    rdb38740 r532b6fb  
    463463//--------------------------------------------------------------------
    464464{
     465  if(CheckNonDeclarativeAction("BDBOpen")) { return; }
    465466  alias_ ++;
    466467  BText    alias = BText("_BDB_")+alias_+"_";
    … …  
    546547//--------------------------------------------------------------------
    547548{
     549  if(CheckNonDeclarativeAction("BDBClose")) { return; }
    548550    BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    549551    bdb->File()->Close();
    … …  
    569571//--------------------------------------------------------------------
    570572{
     573  if(CheckNonDeclarativeAction("BDBFieldName")) { return; }
    571574  BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    572575  contens_ = bdb->File()->FieldName((BInt)Real(Arg(2))-1);
    … …  
    587590//--------------------------------------------------------------------
    588591{
     592  if(CheckNonDeclarativeAction("BDBFieldPos")) { return; }
    589593    BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    590594    contens_ = 1+bdb->File()->Field(Text(Arg(2)));
    … …  
    605609//--------------------------------------------------------------------
    606610{
     611  if(CheckNonDeclarativeAction("BDBLine")) { return; }
    607612    BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    608613    contens_ = bdb->File()->GetRegister((BInt)Real(Arg(2))-1);
    … …  
    623628//--------------------------------------------------------------------
    624629{
     630  if(CheckNonDeclarativeAction("BDBReg")) { return; }
    625631    BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    626632    bdb->Reg((BInt)Real(Arg(2))-1, contens_);
    … …  
    640646//--------------------------------------------------------------------
    641647{
     648  if(CheckNonDeclarativeAction("BDBTable")) { return; }
    642649    BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    643650    BInt reg = bdb->File()->RegNumber();
    … …  
    666673//--------------------------------------------------------------------
    667674{
     675  if(CheckNonDeclarativeAction("BDBRead")) { return; }
    668676    BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    669677   
    … …  
    687695//--------------------------------------------------------------------
    688696{
     697  if(CheckNonDeclarativeAction("BDBCell")) { return; }
    689698    BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    690699   
    … …  
    709718//--------------------------------------------------------------------
    710719{
     720  if(CheckNonDeclarativeAction("BDBSort")) { return; }
    711721    BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    712722    BSet             field;
    … …  
    753763//--------------------------------------------------------------------
    754764{
     765  if(CheckNonDeclarativeAction("BDBSortAndSave")) { return; }
    755766    BDataBase* bdb     = GetDataBase(Arg(1)); if(!bdb) { return; }
    756767    BText            path    = Text(Arg(2));
    … …  
    803814//--------------------------------------------------------------------
    804815{
     816  if(CheckNonDeclarativeAction("BDBClassify")) { return; }
    805817  BDataBase* bdb   = GetDataBase(Arg(1)); if(!bdb) { return; }
    806818  BSet       field = Set(Arg(2));
    … …  
    859871//--------------------------------------------------------------------
    860872{
     873  if(CheckNonDeclarativeAction("BDBSeries")) { return; }
    861874  BDataBase*    bdb      = GetDataBase(Arg(1)); if(!bdb) { return; }
    862875  BSet          dim      = Set(Arg(2));
    … …  
    955968//--------------------------------------------------------------------
    956969{
     970  if(CheckNonDeclarativeAction("BDBSaveAs")) { return; }
    957971  BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    958972
    … …  
    10371051//--------------------------------------------------------------------
    10381052{
     1053  if(CheckNonDeclarativeAction("BDBExtract")) { return; }
    10391054  BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; }
    10401055
  • tol/btol/bdb/bdspool.cpp

    rdb38740 r532b6fb  
    207207//--------------------------------------------------------------------
    208208{
     209  if(CheckNonDeclarativeAction("DBOpen")) { return; }
    209210  BSet dbStruct;
    210211 
    … …  
    256257//////////////////////////////////////////////////////////////////////////////
    257258{
     259  if(CheckNonDeclarativeAction("DBActivate")) { return; }
    258260  contens_ = dbActivate(Text(Arg(1)).String());
    259261}
    … …  
    283285//--------------------------------------------------------------------
    284286{
     287  if(CheckNonDeclarativeAction("DBGetOpened")) { return; }
    285288  BText B = "(Funcion DBGetOpened)";
    286289  const char *type = Text(Arg(1)).String();
    … …  
    321324//--------------------------------------------------------------------
    322325{
     326  if(CheckNonDeclarativeAction("DBClose")) { return; }
    323327  const char* alias = NULL;
    324328
    … …  
    342346void BDatDBExecQuery::CalcContens()
    343347{
     348  if(CheckNonDeclarativeAction("DBExecQuery")) { return; }
    344349    const BChar* query = Text(Arg(1)).String();
    345350    contens_ = dbExecQuery(query);
    … …  
    365370//--------------------------------------------------------------------
    366371{
     372  if(CheckNonDeclarativeAction("DBSeries")) { return; }
    367373    BText B = "(Funcion DBSeries) ";
    368374
    … …  
    561567//--------------------------------------------------------------------
    562568{
     569  if(CheckNonDeclarativeAction("DBSeriesColumn")) { return; }
    563570    BText B = "(Funcion DBSeriesColumn) ";
    564571
    … …  
    761768//--------------------------------------------------------------------
    762769{
     770  if(CheckNonDeclarativeAction("DBSeriesTable")) { return; }
    763771    BText B = "(Funcion DBSeriesTable) ";
    764772
    … …  
    9931001//--------------------------------------------------------------------
    9941002{
     1003  if(CheckNonDeclarativeAction("DBMatrix")) { return; }
    9951004    BText B = "(Funcion DBMatrix) ";
    9961005    BInt i,j;
    … …  
    10331042//--------------------------------------------------------------------
    10341043{
     1044  if(CheckNonDeclarativeAction("DBTable")) { return; }
    10351045    BText B = "(Funcion DBTable) ";
    10361046    BText query  = Text(Arg(1));
    … …  
    12191229//--------------------------------------------------------------------
    12201230{
     1231  if(CheckNonDeclarativeAction("DBCreateSeriesTable")) { return; }
    12211232    BText B          = "(Funcion DBCreateSeriesTable) ";
    12221233    BText name       = Text(Arg(1));
    … …  
    13861397// problema) como en prefijos, lo cual si incompatibiliza el uso de map.
    13871398
     1399  if(CheckNonDeclarativeAction("DBTableColumn")) { return; }
    13881400  BText B = "(Funcion DBTableColumn) ";
    13891401  BText query  = Text(Arg(1));
Note: See TracChangeset for help on using the changeset viewer.