0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / BOPDS / BOPDS_PassKeyBoolean.lxx
CommitLineData
b311480e 1// Created by: Peter KURNEV
4e57c75e 2// Copyright (c) 2010-2012 OPEN CASCADE SAS
3// Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4// Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5// EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
b311480e 6//
7// The content of this file is subject to the Open CASCADE Technology Public
8// License Version 6.5 (the "License"). You may not use the content of this file
9// except in compliance with the License. Please obtain a copy of the License
10// at http://www.opencascade.org and read it completely before using this file.
11//
12// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
13// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14//
15// The Original Code and all software distributed under the License is
16// distributed on an "AS IS" basis, without warranty of any kind, and the
17// Initial Developer hereby disclaims all such warranties, including without
18// limitation, any warranties of merchantability, fitness for a particular
19// purpose or non-infringement. Please see the License for the specific terms
20// and conditions governing the rights and limitations under the License.
21
7fd59977 22//=======================================================================
4e57c75e 23//function :
7fd59977 24//purpose :
25//=======================================================================
4e57c75e 26 inline BOPDS_PassKeyBoolean::BOPDS_PassKeyBoolean()
7fd59977 27:
4e57c75e 28 BOPDS_PassKey(),
29 myFlag(Standard_False)
30{
31}
7fd59977 32//=======================================================================
4e57c75e 33//function :
7fd59977 34//purpose :
35//=======================================================================
4e57c75e 36 inline BOPDS_PassKeyBoolean::BOPDS_PassKeyBoolean
37 (const Handle(NCollection_BaseAllocator)& theAllocator)
38:
39 BOPDS_PassKey(theAllocator),
40 myFlag(Standard_False)
7fd59977 41{
7fd59977 42}
7fd59977 43//=======================================================================
4e57c75e 44//function :
7fd59977 45//purpose :
46//=======================================================================
4e57c75e 47 inline BOPDS_PassKeyBoolean::BOPDS_PassKeyBoolean(const BOPDS_PassKeyBoolean& aOther)
7fd59977 48{
4e57c75e 49 myPtr=NULL;
50 BOPDS_PassKey::operator =(aOther);
51 myFlag=aOther.myFlag;
7fd59977 52}
7fd59977 53//=======================================================================
4e57c75e 54//function :~
7fd59977 55//purpose :
56//=======================================================================
4e57c75e 57 inline BOPDS_PassKeyBoolean::~BOPDS_PassKeyBoolean()
7fd59977 58{
7fd59977 59}
7fd59977 60//=======================================================================
4e57c75e 61//function :operator =
7fd59977 62//purpose :
63//=======================================================================
4e57c75e 64 inline BOPDS_PassKeyBoolean& BOPDS_PassKeyBoolean::operator =(const BOPDS_PassKeyBoolean& aOther)
7fd59977 65{
4e57c75e 66 BOPDS_PassKey::operator =(aOther);
67 myFlag=aOther.myFlag;
68 return *this;
7fd59977 69}
7fd59977 70//=======================================================================
4e57c75e 71//function :SetFlag
7fd59977 72//purpose :
73//=======================================================================
4e57c75e 74 inline void BOPDS_PassKeyBoolean::SetFlag(const Standard_Boolean aFlag)
7fd59977 75{
4e57c75e 76 myFlag=aFlag;
7fd59977 77}
78//=======================================================================
4e57c75e 79//function :Flag
7fd59977 80//purpose :
81//=======================================================================
4e57c75e 82 inline Standard_Boolean BOPDS_PassKeyBoolean::Flag()const
7fd59977 83{
4e57c75e 84 return myFlag;
7fd59977 85}