API Reference
TopologyIconPackJson
Reads and writes dependency-free JSON manifests for topology icon packs.
Inheritance
- Object
- TopologyIconPackJson
Methods
AddJsonPack(ChartForgeX.Topology.TopologyIconCatalog catalog, System.String json) #Adds a JSON manifest icon pack to the catalog.
Parameters
- catalog ChartForgeX.Topology.TopologyIconCatalog
- The target catalog.
- json System.String
- The JSON manifest.
Returns
The current catalog.
AddJsonPack(ChartForgeX.Topology.TopologyIconCatalog catalog, System.IO.TextReader reader) #Adds a JSON manifest icon pack read from a text reader to the catalog.
Parameters
- catalog ChartForgeX.Topology.TopologyIconCatalog
- The target catalog.
- reader System.IO.TextReader
- The source text reader.
Returns
The current catalog.
AddJsonPackFile(ChartForgeX.Topology.TopologyIconCatalog catalog, System.String path) #Adds a JSON manifest icon pack read from a file to the catalog.
Parameters
- catalog ChartForgeX.Topology.TopologyIconCatalog
- The target catalog.
- path System.String
- The manifest file path.
Returns
The current catalog.
AddJsonPacksFromDirectory(ChartForgeX.Topology.TopologyIconCatalog catalog, System.String directoryPath, System.String searchPattern, System.Boolean recursive) #Adds all JSON icon-pack manifests from a directory to the catalog in deterministic file-name order.
Parameters
- catalog ChartForgeX.Topology.TopologyIconCatalog
- The target catalog.
- directoryPath System.String
- The source directory path.
- searchPattern System.String
- The file search pattern.
- recursive System.Boolean
- Whether child directories should be searched.
Returns
The current catalog.
FromJson(System.String json) #Creates a topology icon pack from a JSON manifest.
Parameters
- json System.String
- The JSON manifest.
Returns
The imported topology icon pack.
FromJson(System.String json, System.String manifestDirectory) #Creates a topology icon pack from a JSON manifest and optionally resolves pack-local sidecar artwork.
Parameters
- json System.String
- The JSON manifest.
- manifestDirectory System.String
- The manifest directory used to resolve sidecar artwork paths.
Returns
The imported topology icon pack.
LoadJsonCatalogFromDirectory(System.String directoryPath, System.String searchPattern, System.Boolean recursive, System.Boolean includeBuiltInPacks) #Loads a topology icon catalog from a directory and returns per-file diagnostics.
Parameters
- directoryPath System.String
- The source directory path.
- searchPattern System.String
- The file search pattern.
- recursive System.Boolean
- Whether child directories should be searched.
- includeBuiltInPacks System.Boolean
- Whether the returned catalog should start with ChartForgeX built-in packs.
Returns
The loaded catalog plus per-file diagnostics.
LoadJsonCatalogFromDirectory(System.String directoryPath, ChartForgeX.Topology.TopologyIconCatalogLoadOptions options) #Loads a topology icon catalog from a directory and returns per-file diagnostics.
Parameters
- directoryPath System.String
- The source directory path.
- options ChartForgeX.Topology.TopologyIconCatalogLoadOptions
- The load options.
Returns
The loaded catalog plus per-file diagnostics.
LoadJsonManifest(System.String path) #Loads a topology icon pack from a JSON manifest file.
Parameters
- path System.String
- The manifest file path.
Returns
The imported topology icon pack.
LoadJsonManifest(System.IO.TextReader reader) #Loads a topology icon pack from a JSON manifest text reader.
Parameters
- reader System.IO.TextReader
- The source text reader.
Returns
The imported topology icon pack.
LoadJsonManifest(System.IO.TextReader reader, System.String manifestDirectory) #Loads a topology icon pack from a JSON manifest text reader and resolves pack-local sidecar artwork.
Parameters
- reader System.IO.TextReader
- The source text reader.
- manifestDirectory System.String
- The manifest directory used to resolve sidecar artwork paths.
Returns
The imported topology icon pack.
LoadJsonManifestResultsFromDirectory(System.String directoryPath, System.String searchPattern, System.Boolean recursive) #Loads all JSON icon-pack manifests from a directory and reports per-file success or failure.
Parameters
- directoryPath System.String
- The source directory path.
- searchPattern System.String
- The file search pattern.
- recursive System.Boolean
- Whether child directories should be searched.
Returns
Per-file load results in deterministic file-name order.
LoadJsonManifestsFromDirectory(System.String directoryPath, System.String searchPattern, System.Boolean recursive) #Loads all JSON icon-pack manifests from a directory in deterministic file-name order.
Parameters
- directoryPath System.String
- The source directory path.
- searchPattern System.String
- The file search pattern.
- recursive System.Boolean
- Whether child directories should be searched.
Returns
The imported topology icon packs.
SaveJsonManifest(ChartForgeX.Topology.TopologyIconPack pack, System.String path, System.Boolean indented) #Saves a topology icon pack to a JSON manifest file.
Parameters
- pack ChartForgeX.Topology.TopologyIconPack
- The icon pack.
- path System.String
- The target manifest file path.
- indented System.Boolean
- Whether the manifest should be indented.
ToJsonManifest(ChartForgeX.Topology.TopologyIconPack pack, System.Boolean indented) #Serializes a topology icon pack as a deterministic JSON manifest.
Parameters
- pack ChartForgeX.Topology.TopologyIconPack
- The icon pack.
- indented System.Boolean
- Whether the manifest should be indented.
Returns
The JSON manifest.
WriteJsonManifest(ChartForgeX.Topology.TopologyIconPack pack, System.IO.TextWriter writer, System.Boolean indented) #Writes a topology icon pack JSON manifest to a text writer.
Parameters
- pack ChartForgeX.Topology.TopologyIconPack
- The icon pack.
- writer System.IO.TextWriter
- The target text writer.
- indented System.Boolean
- Whether the manifest should be indented.
Fields
Schema #Gets the manifest schema identifier.