Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.BuildEngine.MicroThreadFileProvider Class Reference
Inheritance diagram for SiliconStudio.BuildEngine.MicroThreadFileProvider:
SiliconStudio.Core.IO.VirtualFileProviderBase SiliconStudio.Core.IO.IVirtualFileProvider

Public Member Functions

 MicroThreadFileProvider (string rootPath)
 
override string GetAbsolutePath (string path)
 Gets the absolute path for the specified local path from this provider.
Parameters
pathThe path local to this instance.
Returns
An absolute path.
More...
 
override Stream OpenStream (string url, VirtualFileMode mode, VirtualFileAccess access, VirtualFileShare share=VirtualFileShare.Read, StreamFlags streamFlags=StreamFlags.None)
 Opens a Stream from the specified path.
Parameters
pathThe path.
modeThe mode.
accessThe access.
shareThe process sharing mode.
streamFlagsThe type of stream needed
Returns
The opened stream.
More...
 
override bool FileExists (string url)
 Determines whether the specified path points to an existing file.
Parameters
urlThe path.
Returns
More...
 
override long FileSize (string url)
 Returns the size of the specified file in bytes
Parameters
urlThe file or directory for which to obtain size
Returns
A long value representing the file size in bytes
More...
 
- Public Member Functions inherited from SiliconStudio.Core.IO.VirtualFileProviderBase
virtual bool DirectoryExists (string url)
 Determines whether the specified path points to an existing directory. More...
 
virtual string[] ListFiles (string url, string searchPattern, VirtualSearchOption searchOption)
 Returns the list of files from the specified path.
Parameters
pathThe path.
searchPatternThe search pattern.
searchOptionThe search option.
Returns
A list of files from the specified path
More...
 
virtual void FileDelete (string url)
 Deletes the specified file.
Parameters
urlThe URL.
More...
 
virtual void FileMove (string sourceUrl, string destinationUrl)
 Move the specified file specified from its sourceUrl to the location pointed by destinationUrl. Do not overwrite, throw IOException if the file can't be moved.
Parameters
sourceUrlThe source URL of the file
destinationUrlThe destination URL of the file
More...
 
virtual void FileMove (string sourceUrl, IVirtualFileProvider destinationProvider, string destinationUrl)
 Move the specified file specified from its sourceUrl to the location pointed by destinationUrl in the destination provider. Do not overwrite, throw IOException if the file can't be moved.
Parameters
sourceUrlThe source URL.
destinationProviderThe destination provider.
destinationUrlThe destination URL, relative to the destination provider.
More...
 
virtual DateTime GetLastWriteTime (string url)
 Returns the date and time the specified file or directory was last written to.
Parameters
urlThe file or directory for which to obtain write date and time information.
Returns
A DateTime structure set to the date and time that the specified file or directory was last written to.
More...
 
virtual void CreateDirectory (string url)
 Creates all directories so that url exists.
Parameters
urlThe URL.
More...
 

Public Attributes

MicroThreadLocal
< IVirtualFileProvider
ThreadLocal
 

Additional Inherited Members

- Protected Member Functions inherited from SiliconStudio.Core.IO.VirtualFileProviderBase
 VirtualFileProviderBase (string rootPath)
 
virtual string ResolvePath (string path)
 Resolves the path (can map virtual to absolute path). More...
 
- Properties inherited from SiliconStudio.Core.IO.VirtualFileProviderBase
string RootPath [get, set]
 
- Properties inherited from SiliconStudio.Core.IO.IVirtualFileProvider
string RootPath [get]
 Gets or sets the root path of this provider. See remarks. More...
 

Detailed Description

Definition at line 10 of file MicroThreadFileProvider.cs.

Constructor & Destructor Documentation

SiliconStudio.BuildEngine.MicroThreadFileProvider.MicroThreadFileProvider ( string  rootPath)

Definition at line 17 of file MicroThreadFileProvider.cs.

Member Function Documentation

override bool SiliconStudio.BuildEngine.MicroThreadFileProvider.FileExists ( string  url)
virtual

Determines whether the specified path points to an existing file.

Parameters
urlThe path.
Returns

Reimplemented from SiliconStudio.Core.IO.VirtualFileProviderBase.

Definition at line 31 of file MicroThreadFileProvider.cs.

override long SiliconStudio.BuildEngine.MicroThreadFileProvider.FileSize ( string  url)
virtual

Returns the size of the specified file in bytes

Parameters
urlThe file or directory for which to obtain size
Returns
A long value representing the file size in bytes

Reimplemented from SiliconStudio.Core.IO.VirtualFileProviderBase.

Definition at line 36 of file MicroThreadFileProvider.cs.

override string SiliconStudio.BuildEngine.MicroThreadFileProvider.GetAbsolutePath ( string  path)
virtual

Gets the absolute path for the specified local path from this provider.

Parameters
pathThe path local to this instance.
Returns
An absolute path.

Reimplemented from SiliconStudio.Core.IO.VirtualFileProviderBase.

Definition at line 21 of file MicroThreadFileProvider.cs.

override Stream SiliconStudio.BuildEngine.MicroThreadFileProvider.OpenStream ( string  url,
VirtualFileMode  mode,
VirtualFileAccess  access,
VirtualFileShare  share = VirtualFileShare.Read,
StreamFlags  streamFlags = StreamFlags.None 
)
virtual

Opens a Stream from the specified path.

Parameters
pathThe path.
modeThe mode.
accessThe access.
shareThe process sharing mode.
streamFlagsThe type of stream needed
Returns
The opened stream.

Implements SiliconStudio.Core.IO.VirtualFileProviderBase.

Definition at line 26 of file MicroThreadFileProvider.cs.

Member Data Documentation

MicroThreadLocal<IVirtualFileProvider> SiliconStudio.BuildEngine.MicroThreadFileProvider.ThreadLocal
Initial value:
= new MicroThreadLocal<IVirtualFileProvider>(() =>
{
throw new InvalidOperationException("No VirtualFileProvider set for this microthread.");
})

Definition at line 12 of file MicroThreadFileProvider.cs.


The documentation for this class was generated from the following file: