From 8a7e6e498ef4b1697e9db053cd598d53a24e99c1 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 1 Apr 2003 12:38:18 +0000 Subject: INTEGRATION: CWS cfg01 (1.2.24); FILE MERGED 2003/03/13 15:09:13 jb 1.2.24.3: #107404# Further clean up of node::Attributes interface 2003/02/28 16:33:37 ssmith 1.2.24.2: #107403# #107403# adding support for mandatory flag and changing dynamic properties semantics 2003/02/17 15:57:36 ssmith 1.2.24.1: #107404# refactoring code to support encapsulation --- configmgr/source/tree/treefragment.cxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'configmgr/source') diff --git a/configmgr/source/tree/treefragment.cxx b/configmgr/source/tree/treefragment.cxx index b5aa2eda68a5..8dece27b279f 100644 --- a/configmgr/source/tree/treefragment.cxx +++ b/configmgr/source/tree/treefragment.cxx @@ -2,9 +2,9 @@ * * $RCSfile: treefragment.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2002-02-19 13:09:06 $ + * last change: $Author: vg $ $Date: 2003-04-01 13:38:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -135,13 +135,17 @@ configmgr::node::Attributes TreeFragment::getAttributes() const default: OSL_ASSERT(false); break; // not reachable } - aResult.bWritable = ! (this->header.state & State::flag_readonly); + aResult.setRemovability(!!(this->header.state & State::flag_removable), + !!(this->header.state & State::flag_mandatory)); + OSL_ASSERT( header.count != 0 ); NodeInfo const & aRootNodeInfo = this->nodes[0].node.info; - aResult.bFinalized = !!(aRootNodeInfo.flags & Flags::finalized); - aResult.bLocalized = !!(aRootNodeInfo.flags & Flags::localized); + aResult.setAccess( !!(this->header.state & State::flag_readonly), + !!(aRootNodeInfo.flags & Flags::finalized) ); + + aResult.setLocalized ( !!(aRootNodeInfo.flags & Flags::localized)); return aResult; } -- cgit