// Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #include #include #include #include #include IMPLEMENT_STANDARD_RTTIEXT(Transfer_TransientListBinder,Transfer_Binder) //#include //======================================================================= //function : Constructor //purpose : //======================================================================= Transfer_TransientListBinder::Transfer_TransientListBinder () { theres = new TColStd_HSequenceOfTransient(); } //======================================================================= //function : Constructor //purpose : //======================================================================= Transfer_TransientListBinder::Transfer_TransientListBinder (const Handle(TColStd_HSequenceOfTransient)& list) { theres = list; } //======================================================================= //function : IsMultiple //purpose : //======================================================================= Standard_Boolean Transfer_TransientListBinder::IsMultiple () const { return (NbTransients() > 1); } //======================================================================= //function : ResultType //purpose : //======================================================================= Handle(Standard_Type) Transfer_TransientListBinder::ResultType () const { return STANDARD_TYPE(Transfer_TransientListBinder); } //======================================================================= //function : ResultTypeName //purpose : //======================================================================= Standard_CString Transfer_TransientListBinder::ResultTypeName () const { return "list(Standard_Transient)"; } //======================================================================= //function : AddResult //purpose : //======================================================================= void Transfer_TransientListBinder::AddResult (const Handle(Standard_Transient)& Transient) { theres->Append(Transient); } //======================================================================= //function : Result //purpose : //======================================================================= Handle(TColStd_HSequenceOfTransient) Transfer_TransientListBinder::Result () const { return theres; } //======================================================================= //function : SetResult //purpose : //======================================================================= void Transfer_TransientListBinder::SetResult (const Standard_Integer num, const Handle(Standard_Transient)& Transient) { theres->SetValue(num,Transient); } //======================================================================= //function : NbTransients //purpose : //======================================================================= Standard_Integer Transfer_TransientListBinder::NbTransients () const { return theres->Length(); } //======================================================================= //function : Transient //purpose : //======================================================================= const Handle(Standard_Transient)& Transfer_TransientListBinder::Transient (const Standard_Integer num) const { return theres->Value(num); }