Changeset 176c3d90 in tol


Ignore:
Timestamp:
Jul 24, 2009, 4:40:17 PM (17 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
10e4c70
Parents:
47bb2da
Message:

ClassOf instead of GetClassOf, closes #719

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/text_type/txtgra.cpp

    r47bb2da r176c3d90  
    3333#include <tol/tol_btxtgra.h>
    3434#include <tol/tol_bout.h>
     35#include <tol/tol_bnameblock.h>
    3536#include <tol/tol_bsys.h>
    3637#include <tol/tol_bdir.h>
    … …  
    22462247}
    22472248
    2248 
     2249//--------------------------------------------------------------------
     2250DeclareContensClass(BText, BTxtTemporary, BTxtClassOf);
     2251DefExtOpr(1, BTxtClassOf, "ClassOf", 1, 1,
     2252          "NameBlock",
     2253          "(NameBlock instance )",
     2254          I2("Returns the class name for a give NameBlock. If the nameBlock does not have Class associated returns empty \"\"",
     2255             "Retorna el nombre de la clase asociada con un NameBlock. Si el NameBlock no tiene clase asociada retorna cadena vacia \"\""),
     2256          BOperClassify::General_);
     2257
     2258//--------------------------------------------------------------------
     2259void BTxtClassOf::CalcContens()
     2260//--------------------------------------------------------------------
     2261{
     2262  const BNameBlock& nb = ((BUserNameBlock*)(Arg(1)))->Contens();
     2263  const BClass* cls = nb.Class( );
     2264  if ( cls ) {
     2265    contens_ = cls->getName( );
     2266  }
     2267}
    22492268
    22502269//--------------------------------------------------------------------
    … …  
    23822401    contens_ = BText(base.c_str());
    23832402}
    2384 
    23852403#endif /* __USE_TC__ */
Note: See TracChangeset for help on using the changeset viewer.