1 // Created on: 2007-08-20
2 // Created by: Sergey ZARITCHNY
3 // Copyright (c) 2007-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 //=======================================================================
17 //function : HasIntegers
18 //purpose : Returns true if there are some named integers in the attribute.
19 //=======================================================================
21 inline Standard_Boolean TDataStd_NamedData::HasIntegers() const
23 return !myIntegers.IsNull();
26 //=======================================================================
28 //purpose : Returns true if there are some named reals in the attribute.
29 //=======================================================================
30 inline Standard_Boolean TDataStd_NamedData::HasReals() const
32 return !myReals.IsNull();
35 //=======================================================================
36 //function : HasStrings
37 //purpose : Returns true if there are some named strings in the attribute.
38 //=======================================================================
39 inline Standard_Boolean TDataStd_NamedData::HasStrings() const
41 return !myStrings.IsNull();
44 //=======================================================================
46 //purpose : Returns true if there are some named bytes in the attribute.
47 //=======================================================================
48 inline Standard_Boolean TDataStd_NamedData::HasBytes() const
50 return !myBytes.IsNull();
53 //=======================================================================
54 //function : HasArraysOfIntegers
55 //purpose : Returns true if there are at least one array of integer
56 // : values in the internal container of the attribute.
57 //=======================================================================
58 inline Standard_Boolean TDataStd_NamedData::HasArraysOfIntegers() const
60 return !myArraysOfIntegers.IsNull();
62 //=======================================================================
63 //function : HasArraysOfReals
64 //purpose : Returns true if there are some named arrays of real values
65 // : in the attribute.
66 //=======================================================================
67 inline Standard_Boolean TDataStd_NamedData::HasArraysOfReals() const
69 return !myArraysOfReals.IsNull();