Retrives a specifc Sofu.Map from this Map indentified by key.
Parameters
- key (String)
- Identifies the Map to get
Return Value
The Map at key
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu"); try { file.map("Output").Write("output.sofu"); } catch (SofuNoElementException e) { Sofu.Sofu.Map output = new Sofu.Sofu.Map(); output.Write("output.sofu"); } catch (SofuNotMapException e) { Console.Out.WriteLine("Can't generate output file, map expected!"); }
Exceptions
Exception | Condition |
---|---|
SofuNoElementException | Will throw SofuNoElementException when the Key is not in this Map |
SofuNotMapException | Throws a SofuNotMapException if the requested element is not a Map |