DataNode

Metropolis SDK ›› Classes ››
Parent Previous Next

namespace Dysr.Metropolis.SDK

{

   /// <summary>

   /// The DataNode is the object passed between nodes for processing, loading and saving.

   /// </summary>

   public class NodeData

   {

       /// <summary>

       /// The list of DataFile objects contained in the NodeData object. This list represents

       /// the current "workspace" or "work folder."

       /// </summary>

       public List<DataFile> DataFileList { get; set; }


       public NodeData()

       {

           DataFileList = new List<DataFile>();

       }


       /// <summary>

       /// Returns a distinct list of file paths of the DataFileList.

       /// </summary>

       /// <returns></returns>

       public string[] ListFilePaths()

       {

           HashSet<string> pathList = new HashSet<string>();

           foreach (DataFile dataFile in DataFileList)

               if (!pathList.Contains(dataFile.FileInfo.FullName))

                   pathList.Add(dataFile.FileInfo.FullName);


           return pathList.ToArray();

       }

   }

}

Created with the Personal Edition of HelpNDoc: Easily create HTML Help documents