|
||||
File indexing completed on 2025-01-18 10:03:55
0001 // Created on: 1998-01-28 0002 // Created by: Christian CAILLET 0003 // Copyright (c) 1998-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _IFSelect_SignMultiple_HeaderFile 0018 #define _IFSelect_SignMultiple_HeaderFile 0019 0020 #include <Standard.hxx> 0021 0022 #include <TColStd_SequenceOfTransient.hxx> 0023 #include <TColStd_SequenceOfInteger.hxx> 0024 #include <IFSelect_Signature.hxx> 0025 #include <Standard_Integer.hxx> 0026 class Standard_Transient; 0027 class Interface_InterfaceModel; 0028 class TCollection_AsciiString; 0029 0030 0031 class IFSelect_SignMultiple; 0032 DEFINE_STANDARD_HANDLE(IFSelect_SignMultiple, IFSelect_Signature) 0033 0034 //! Multiple Signature : ordered list of other Signatures 0035 //! It concatenates on a same line the result of its sub-items 0036 //! separated by sets of 3 blanks 0037 //! It is possible to define tabulations between sub-items 0038 //! Moreover, match rules are specific 0039 class IFSelect_SignMultiple : public IFSelect_Signature 0040 { 0041 0042 public: 0043 0044 0045 //! Creates an empty SignMultiple with a Name 0046 //! This name should take expected tabulations into account 0047 Standard_EXPORT IFSelect_SignMultiple(const Standard_CString name); 0048 0049 //! Adds a Signature. Width, if given, gives the tabulation 0050 //! If <maxi> is True, it is a forced tabulation (overlength is 0051 //! replaced by a final dot) 0052 //! If <maxi> is False, just 3 blanks follow an overlength 0053 Standard_EXPORT void Add (const Handle(IFSelect_Signature)& subsign, const Standard_Integer width = 0, const Standard_Boolean maxi = Standard_False); 0054 0055 //! Concatenates the values of sub-signatures, with their 0056 //! tabulations 0057 Standard_EXPORT Standard_CString Value (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE; 0058 0059 //! Specialized Match Rule 0060 //! If <exact> is False, simply checks if at least one sub-item 0061 //! matches 0062 //! If <exact> is True, standard match with Value 0063 //! (i.e. tabulations must be respected) 0064 Standard_EXPORT virtual Standard_Boolean Matches (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model, const TCollection_AsciiString& text, const Standard_Boolean exact) const Standard_OVERRIDE; 0065 0066 0067 0068 0069 DEFINE_STANDARD_RTTIEXT(IFSelect_SignMultiple,IFSelect_Signature) 0070 0071 protected: 0072 0073 0074 0075 0076 private: 0077 0078 0079 TColStd_SequenceOfTransient thesubs; 0080 TColStd_SequenceOfInteger thetabs; 0081 0082 0083 }; 0084 0085 0086 0087 0088 0089 0090 0091 #endif // _IFSelect_SignMultiple_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |