NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Export.FileStreamDestination Class Reference
Inheritance diagram for Ntp.Analyzer.Export.FileStreamDestination:
Collaboration diagram for Ntp.Analyzer.Export.FileStreamDestination:

Public Member Functions

 FileStreamDestination (string file)
 
override void Test ()
 
override void Write (Stream stream, LogBase log)
 

Public Attributes

override string AbsoluteLocation => JoinPath(path.FilePath, file)
 
override string Link => value
 
override string Location => file
 
override string Value => value
 
- Public Attributes inherited from Ntp.Analyzer.Export.StreamDestination
string ConfigName => null
 StreamDestinations never has a name. Always return null. More...
 

Package Functions

void SetPath (IPathProvider pathProvider)
 

Properties

string ConfigValue [get]
 
- Properties inherited from Ntp.Analyzer.Export.StreamDestination
abstract string AbsoluteLocation [get]
 
abstract string Link [get]
 
abstract string Location [get]
 
string Param [get, set]
 
abstract string Value [get]
 
- Properties inherited from Ntp.Analyzer.Interface.IConfigurationNode
string ConfigName [get]
 

Private Attributes

readonly string file
 
IPathProvider path
 
readonly string value
 

Additional Inherited Members

- Static Public Attributes inherited from Ntp.Analyzer.Export.FileSystemDestination
static uint FileGroupId = null
 
static uint FileMask = 644
 
static uint FileUserId = null
 
- Static Protected Member Functions inherited from Ntp.Analyzer.Export.FileSystemDestination
static void ApplyPermissions (string file, LogBase log)
 
static string JoinPath (string path1, string path2)
 
static string JoinPath (string path1, string path2, string path3)
 
static void PrepareFile (string file, LogBase log)
 
static void TestFile (string file, string content)
 
static void WriteFile (Stream stream, string file, LogBase log)
 

Detailed Description

Definition at line 30 of file FileStreamDestination.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Export.FileStreamDestination.FileStreamDestination ( string  file)
inline

Member Function Documentation

void Ntp.Analyzer.Export.FileStreamDestination.SetPath ( IPathProvider  pathProvider)
inlinepackage

Definition at line 66 of file FileStreamDestination.cs.

67  {
68  path = pathProvider;
69  }
override void Ntp.Analyzer.Export.FileStreamDestination.Test ( )
inlinevirtual

Implements Ntp.Analyzer.Export.StreamDestination.

Definition at line 54 of file FileStreamDestination.cs.

55  {
56  TestFile(AbsoluteLocation + "-configtest", "FileStreamDestinationTest");
57  }
static void TestFile(string file, string content)
override void Ntp.Analyzer.Export.FileStreamDestination.Write ( Stream  stream,
LogBase  log 
)
inlinevirtual

Implements Ntp.Analyzer.Export.StreamDestination.

Definition at line 59 of file FileStreamDestination.cs.

60  {
62  WriteFile(stream, AbsoluteLocation, log);
64  }
static void WriteFile(Stream stream, string file, LogBase log)
static void ApplyPermissions(string file, LogBase log)
static void PrepareFile(string file, LogBase log)

Member Data Documentation

override string Ntp.Analyzer.Export.FileStreamDestination.AbsoluteLocation => JoinPath(path.FilePath, file)

Definition at line 52 of file FileStreamDestination.cs.

readonly string Ntp.Analyzer.Export.FileStreamDestination.file
private

Definition at line 39 of file FileStreamDestination.cs.

override string Ntp.Analyzer.Export.FileStreamDestination.Link => value

Definition at line 46 of file FileStreamDestination.cs.

override string Ntp.Analyzer.Export.FileStreamDestination.Location => file

Definition at line 50 of file FileStreamDestination.cs.

IPathProvider Ntp.Analyzer.Export.FileStreamDestination.path
private

Definition at line 41 of file FileStreamDestination.cs.

readonly string Ntp.Analyzer.Export.FileStreamDestination.value
private

Definition at line 40 of file FileStreamDestination.cs.

override string Ntp.Analyzer.Export.FileStreamDestination.Value => value

Definition at line 48 of file FileStreamDestination.cs.

Property Documentation

string Ntp.Analyzer.Export.FileStreamDestination.ConfigValue
get

Definition at line 44 of file FileStreamDestination.cs.


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