Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3547

Show
Ignore:
Timestamp:
06/03/08 16:24:43 (6 months ago)
Author:
kris
Message:

migrated FileConst? module to tango.io.model.IFile

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/example/conduits/filebubbler.d

    r2913 r3547  
    22private import  tango.io.Console, 
    33                tango.io.FileScan, 
    4                 tango.io.FileConst
     4                tango.io.model.IFile
    55 
    66/******************************************************************************* 
  • trunk/install/snapshot/srcsnapshot.d

    r3033 r3547  
    33import tango.io.FileSystem; 
    44import tango.io.FilePath; 
    5 import tango.io.FileConst
     5import tango.io.model.IFile
    66 
    77import tango.io.Stdout; 
  • trunk/tango/group/file.d

    r3546 r3547  
    2525                tango.io.FilePath, 
    2626                tango.io.FileScan, 
    27                 tango.io.FileConst, 
    2827                tango.io.FileSystem, 
    2928                tango.io.FileConduit, 
  • trunk/tango/io/FileConduit.d

    r3208 r3547  
    109109        --- 
    110110 
    111         See File, FilePath, FileConst, FileScan, and FileSystem for  
     111        See File, FilePath, FileScan, and FileSystem for  
    112112        additional functionality related to file manipulation.  
    113113 
  • trunk/tango/io/FileConst.d

    r3267 r3547  
    1313module tango.io.FileConst; 
    1414 
    15 /******************************************************************************* 
     15public import tango.io.model.IFile : FileConst; 
    1616 
    17         A set of file-system specific constants for file and path 
    18         separators (chars and strings). 
    19  
    20         Keep these constants mirrored for each OS 
    21          
    22 *******************************************************************************/ 
    23  
    24 struct FileConst 
    25 
    26         version (Win32) 
    27         { 
    28                 enum : char  
    29                 { 
    30                         CurrentDirChar = '.', 
    31                         FileSeparatorChar = '.', 
    32                         PathSeparatorChar = '/', 
    33                         SystemPathChar = ';', 
    34                 } 
    35  
    36                 static const char[] ParentDirString = ".."; 
    37                 static const char[] CurrentDirString = "."; 
    38                 static const char[] FileSeparatorString = "."; 
    39                 static const char[] PathSeparatorString = "/"; 
    40                 static const char[] SystemPathString = ";"; 
    41  
    42                 static const char[] NewlineString = "\r\n"; 
    43         } 
    44  
    45         version (Posix) 
    46         { 
    47                 enum : char  
    48                 { 
    49                         CurrentDirChar = '.', 
    50                         FileSeparatorChar = '.', 
    51                         PathSeparatorChar = '/', 
    52                         SystemPathChar = ':', 
    53                 } 
    54  
    55                 static const char[] ParentDirString = ".."; 
    56                 static const char[] CurrentDirString = "."; 
    57                 static const char[] FileSeparatorString = "."; 
    58                 static const char[] PathSeparatorString = "/"; 
    59                 static const char[] SystemPathString = ":"; 
    60  
    61                 static const char[] NewlineString = "\n"; 
    62         } 
    63 
     17pragma (msg, "tango.io.FileConst is being migrated - please import tango.io.model.IFile instead"); 
  • trunk/tango/io/FilePath.d

    r3519 r3547  
    2828private import  tango.io.Path; 
    2929 
    30 private import  tango.io.FileConst; 
     30private import  tango.io.model.IFile : FileConst; 
    3131 
    3232private import  tango.core.Exception : IllegalArgumentException; 
  • trunk/tango/io/protocol/Writer.d

    r2667 r3547  
    1414module tango.io.protocol.Writer; 
    1515 
    16 private import  tango.io.Buffer, 
    17                 tango.io.FileConst; 
    18  
    19 public  import  tango.io.model.IBuffer, 
     16private import  tango.io.Buffer; 
     17 
     18public  import  tango.io.model.IFile, 
     19                tango.io.model.IBuffer, 
    2020                tango.io.model.IConduit; 
    2121 
  • trunk/tango/io/vfs/VirtualFolder.d

    r2929 r3547  
    1313module tango.io.vfs.VirtualFolder; 
    1414 
    15 private import tango.io.FileConst; 
    16  
    1715private import tango.util.PathUtil; 
    1816 
    1917private import tango.core.Exception; 
     18 
     19private import tango.io.model.IFile; 
    2020 
    2121private import tango.io.vfs.model.Vfs; 
  • trunk/tango/sys/Environment.d

    r3427 r3547  
    1616 
    1717private import  tango.io.FilePath, 
    18                 tango.io.FileConst, 
    1918                tango.io.FileSystem; 
    2019 
    2120private import  tango.core.Exception; 
     21 
     22private import  tango.io.model.IFile; 
    2223 
    2324private import  Text = tango.text.Util; 
  • trunk/tango/sys/Process.d

    r3435 r3547  
    77module tango.sys.Process; 
    88 
    9 private import tango.io.FileConst
     9private import tango.io.model.IFile
    1010private import tango.io.Console; 
    1111private import tango.io.Buffer; 
  • trunk/tango/text/Properties.d

    r2721 r3547  
    1515private import  tango.io.Buffer, 
    1616                tango.io.FilePath, 
    17                 tango.io.FileConst, 
    1817                tango.io.FileConduit; 
     18 
     19private import  tango.io.model.IFile; 
    1920 
    2021private import  Text = tango.text.Util; 
  • trunk/tango/util/log/AppendFile.d

    r3527 r3547  
    1616 
    1717private import  tango.io.Buffer, 
    18                 tango.io.FileConst, 
    1918                tango.io.FileConduit; 
    2019 
    21 private import  tango.io.model.IConduit; 
     20private import  tango.io.model.IFile, 
     21                tango.io.model.IConduit; 
    2222 
    2323/******************************************************************************* 
  • trunk/tango/util/log/AppendFiles.d

    r3485 r3547  
    1616 
    1717private import  tango.io.FilePath, 
    18                 tango.io.FileConst, 
    1918                tango.io.FileConduit; 
    2019 
    21 private import  tango.io.model.IBuffer; 
     20private import  tango.io.model.IFile, 
     21                tango.io.model.IBuffer; 
    2222 
    2323private import  tango.util.log.Log,