Changeset 7e5625d in tol
- Timestamp:
- Jun 24, 2010, 1:47:16 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 7508034
- Parents:
- ff4ad677
- File:
-
- 1 edited
-
tol/btol/set_type/setgra.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/set_type/setgra.cpp
rff4ad677 r7e5625d 43 43 #include <tol/tol_btsrgrp.h> 44 44 #include <tol/tol_bstruct.h> 45 #include <tol/tol_bclass.h> 45 46 46 47 #if defined(__USE_TC__) … … 130 131 BSyntaxObject* Evaluator(BList* arg) const 131 132 { 133 if(CheckNonDeclarativeAction("Append")) { return(NULL); } 132 134 BList* lst = arg; 133 135 bool incrementalIndexByName = false; … … 472 474 //-------------------------------------------------------------------- 473 475 { 476 if(CheckNonDeclarativeAction("PutStructure")) { return; } 474 477 BText name = Text(Arg(1)); 475 478 BStruct* str = FindStruct(name); … … 942 945 //-------------------------------------------------------------------- 943 946 { 947 if(CheckNonDeclarativeAction("SetIndexByName")) { return; } 944 948 BSet& set = Set(Arg(1)); 945 949 contens_ = set.SetIndexByName(); … … 2595 2599 //-------------------------------------------------------------------- 2596 2600 { 2601 if(CheckNonDeclarativeAction("Tcl_Eval")) { return; } 2597 2602 BText &script = Text(Arg(1)); 2598 2603 BList * result = NIL; … … 2636 2641 //-------------------------------------------------------------------- 2637 2642 { 2643 if(CheckNonDeclarativeAction("Tcl_EvalEx")) { return; } 2638 2644 BSet &cmd = Set(Arg(1)); 2639 2645 BList * result = NIL; … … 2751 2757 2752 2758 2753 2759 //-------------------------------------------------------------------- 2760 DeclareContensClass(BSet, BSetTemporary, BSetClassAscentOf); 2761 DefExtOpr(1, BSetClassAscentOf, "ClassAscentOf", 1, 1, 2762 "Text", 2763 "(Text className)", 2764 I2("Returns the ascent classes of a given class\"\"", 2765 "Retorna las clases ascendientes de una clase dada \"\""), 2766 BOperClassify::General_); 2767 2768 //-------------------------------------------------------------------- 2769 void BSetClassAscentOf::CalcContens() 2770 //-------------------------------------------------------------------- 2771 { 2772 const BText& name = Text(Arg(1)); 2773 BClass* found = FindClass(name,1); 2774 if(found) 2775 { 2776 BMemberOwner::BClassByNameHash* hash = found->ascentHash_; 2777 BMemberOwner::BClassByNameHash::const_iterator iterC; 2778 contens_.PrepareStore(hash->size()); 2779 for(iterC=hash->begin(); iterC!=hash->end(); iterC++) 2780 { 2781 BText fn = iterC->second->FullName(); 2782 //Std(BText(""\nBOisCreator::Write BMemberOwner parent ")+fn); 2783 contens_.AddElement(new BContensText("",fn,"")); 2784 } 2785 } 2786 }
Note: See TracChangeset
for help on using the changeset viewer.
