crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianXmlInputLib/Elements/Types/FileSystem/SXILElementDirectory.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 using System;
       
    18 using System.IO;
       
    19 using System.Xml;
       
    20 using System.Text;
       
    21 using System.Collections.Generic;
       
    22 
       
    23 namespace SymbianXmlInputLib.Elements.Types.FileSystem
       
    24 {
       
    25     public class SXILElementDirectory : SXILElementFileSystem
       
    26     {
       
    27         #region Constructors
       
    28         internal SXILElementDirectory( DirectoryInfo aDir )
       
    29         {
       
    30             iDirectory = aDir;
       
    31         }
       
    32         #endregion
       
    33 
       
    34         #region API
       
    35         #endregion
       
    36 
       
    37         #region Properties
       
    38         public override bool Exists
       
    39         {
       
    40             get { return iDirectory.Exists; }
       
    41         }
       
    42 
       
    43         public override string Name
       
    44         {
       
    45             get { return iDirectory.FullName; }
       
    46             set { iDirectory = new DirectoryInfo( value ); }
       
    47         }
       
    48 
       
    49         public DirectoryInfo Directory
       
    50         {
       
    51             get { return iDirectory; }
       
    52         }
       
    53 
       
    54         public FileInfo[] Files
       
    55         {
       
    56             get { return iDirectory.GetFiles(); }
       
    57         }
       
    58         #endregion
       
    59 
       
    60         #region Operators
       
    61         public static implicit operator DirectoryInfo( SXILElementDirectory aElement )
       
    62         {
       
    63             return aElement.iDirectory;
       
    64         }
       
    65         #endregion
       
    66 
       
    67         #region Internal methods
       
    68         #endregion
       
    69 
       
    70         #region Data members
       
    71         private DirectoryInfo iDirectory;
       
    72         #endregion
       
    73     }
       
    74 }