0032630: Coding - get rid of unsused forward declarations [BinMDF to IFSelect]
[occt.git] / src / IFSelect / IFSelect_SignMultiple.hxx
CommitLineData
42cf5bc1 1// Created on: 1998-01-28
2// Created by: Christian CAILLET
3// Copyright (c) 1998-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _IFSelect_SignMultiple_HeaderFile
18#define _IFSelect_SignMultiple_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <TColStd_SequenceOfTransient.hxx>
24#include <TColStd_SequenceOfInteger.hxx>
25#include <IFSelect_Signature.hxx>
26#include <Standard_CString.hxx>
27#include <Standard_Integer.hxx>
28#include <Standard_Boolean.hxx>
42cf5bc1 29class Standard_Transient;
30class Interface_InterfaceModel;
31class TCollection_AsciiString;
32
33
34class IFSelect_SignMultiple;
35DEFINE_STANDARD_HANDLE(IFSelect_SignMultiple, IFSelect_Signature)
36
37//! Multiple Signature : ordered list of other Signatures
38//! It concatenates on a same line the result of its sub-items
39//! separated by sets of 3 blanks
40//! It is possible to define tabulations between sub-items
41//! Moreover, match rules are specific
42class IFSelect_SignMultiple : public IFSelect_Signature
43{
44
45public:
46
47
48 //! Creates an empty SignMultiple with a Name
49 //! This name should take expected tabulations into account
50 Standard_EXPORT IFSelect_SignMultiple(const Standard_CString name);
51
52 //! Adds a Signature. Width, if given, gives the tabulation
53 //! If <maxi> is True, it is a forced tabulation (overlength is
54 //! replaced by a final dot)
55 //! If <maxi> is False, just 3 blanks follow an overlength
56 Standard_EXPORT void Add (const Handle(IFSelect_Signature)& subsign, const Standard_Integer width = 0, const Standard_Boolean maxi = Standard_False);
57
58 //! Concatenates the values of sub-signatures, with their
59 //! tabulations
79104795 60 Standard_EXPORT Standard_CString Value (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
42cf5bc1 61
62 //! Specialized Match Rule
63 //! If <exact> is False, simply checks if at least one sub-item
64 //! matches
65 //! If <exact> is True, standard match with Value
66 //! (i.e. tabulations must be respected)
67 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;
68
69
70
71
92efcf78 72 DEFINE_STANDARD_RTTIEXT(IFSelect_SignMultiple,IFSelect_Signature)
42cf5bc1 73
74protected:
75
76
77
78
79private:
80
81
82 TColStd_SequenceOfTransient thesubs;
83 TColStd_SequenceOfInteger thetabs;
84
85
86};
87
88
89
90
91
92
93
94#endif // _IFSelect_SignMultiple_HeaderFile