C# Class FuseboxFreedom.Program

Convert an xml fusebox circuit to a cfscript cfc TODO: convert an entire project TODO: copy fbFreedom.cfc to cfc path TODO: read fusebox.xml.cfm to output fbFreedomSettings.cfc
Show file Open project: jamie-pate/FuseBoxFreedom

Public Properties

Property Type Description
input_file string
output_filename string
watchers System.IO.FileSystemWatcher[]

Public Methods

Method Description
Convert ( string path, string from, string to ) : void
Watch ( string path, string from ) : FileSystemWatcher

Private Methods

Method Description
Assign ( System.Xml.Linq.XAttribute name, string value ) : string
CFFunction ( string name, IEnumerable lines ) : IEnumerable
CheckSupportedAccess ( System.Xml.Linq.XElement elem ) : string
Convert ( string from, string to ) : void
DeHash ( string str, bool quote = true ) : string

remove extra hash marks from #expression#. If # is detected inside expression, return "#expres##sion#"

DoConvert ( FileSystemEventArgs e, FileSystemWatcher sender ) : void
DoRetry ( RetryWatch w ) : bool
FuseElement ( System.Xml.Linq.XElement elem ) : IEnumerable
FuseElements ( System.Xml.Linq.XElement elem ) : IEnumerable
Main ( string args ) : void
NotImplemented ( System.Xml.Linq.XElement elem ) : IEnumerable
OverWrite ( System.Xml.Linq.XElement elem, System.Xml.Linq.XAttribute name ) : IEnumerable
OverWrite ( System.Xml.Linq.XElement elem, System.Xml.Linq.XName attrName ) : IEnumerable
RemoveWatcher ( FileSystemWatcher w ) : void
Retry ( FileSystemEventArgs e, FileSystemWatcher sender ) : void
RetryTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool
Truthy ( string b, bool emptyValue = false ) : bool
WriteCircuit ( System.Xml.Linq.XElement circuit ) : IEnumerable

Write a cfc circuit from a circuit.xml.cfm. Not completely accurate as far as fusebox behavior but this is the way i think it should work prefuseaction becomes init() postfuseaction raises an exception

WriteFA ( System.Xml.Linq.XElement fuseAction, string methodName = null ) : IEnumerable
WriteOutput ( System.Xml.Linq.XElement elem, System.Xml.Linq.XName attrName ) : IEnumerable
comment ( System.Xml.Linq.XElement elem, IEnumerable output, bool empty = false ) : IEnumerable
comment ( System.Xml.Linq.XElement elem, string output ) : IEnumerable
comment ( System.Xml.Linq.XElement elem, bool empty = false ) : string
comment ( string str ) : string
line ( System.Xml.Linq.XElement elem, System.Xml.Linq.XElement elem2 = null ) : string
t_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
tab ( IEnumerable strings ) : IEnumerable
tab ( string str ) : string
w_Disposed ( object sender, EventArgs e ) : void
w_Error ( object sender, ErrorEventArgs e ) : void
w_Notify ( object sender, FileSystemEventArgs e ) : void
w_Renamed ( object sender, RenamedEventArgs e ) : void

Method Details

Convert() public static method

public static Convert ( string path, string from, string to ) : void
path string
from string
to string
return void

Watch() public static method

public static Watch ( string path, string from ) : FileSystemWatcher
path string
from string
return System.IO.FileSystemWatcher

Property Details

input_file public static property

public static string input_file
return string

output_filename public static property

public static string output_filename
return string

watchers public static property

public static FileSystemWatcher[],System.IO watchers
return System.IO.FileSystemWatcher[]