Created
October 15, 2015 06:13
-
-
Save cmpunches/4060c4a740ebe99a9786 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AClassNamedLambda | |
{ | |
public bool enabled; | |
public string Zone { get; set; } | |
public string JOBID { get; set; } | |
public AClassNamedLambda(INI Settings, string localZone) | |
{ | |
// need the zone in the constructor to create the object | |
Zone = Settings.Read(localZone, "Zone"); | |
JOBID = Settings.Read(localZone, "jobid"); | |
} | |
} | |
class Program | |
{ | |
private static void fileDumps() | |
{ | |
// implement | |
} | |
private static List<AClassNamedLambda> GetZonesFrom(INI Settings) | |
{ | |
// but wont know the name of the Zone yet. | |
List<AClassNamedLambda> RetVal = new List<AClassNamedLambda(Settings) ; | |
string[] LambdaString = Settings.Read("LambdaIndex", "Lambdas").Split(','); | |
foreach (string LambdaDefinition in LambdaString) | |
{ | |
RetVal.Add(new AClassNamedLambda(Settings, LambdaDefinition)); | |
} | |
return RetVal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment