Beispiel #1
0
        public void addDelimList()
        {
            //Create lists and add them to the main list container Data structure
            abLinkedList <String> newList = new abLinkedList <string>(null);

            abDelimList.add(newList);
        }
Beispiel #2
0
        //Method to add delimiters takes a start delim and end delim
        public void addDeliminators(string d1, string d2, int index)
        {
            //add a node to a specified list in the list
            abLinkedList <abLinkedList <String> > .node <abLinkedList <String> > n = abDelimList.GetNode(index);
            abLinkedList <string> lst = n.nodeValue;

            lst.add(d1, d2);
        }
Beispiel #3
0
        //private abTreeDataStructure<T> abTree;


        //constructor for the abParse() class
        public abParse(string fPath, string fName)
        {
            filepath          = fPath;
            fileName          = fName;
            numOfLines        = 0;
            numOfDeliminators = 0;
            //Initialize data structure
            abDelimList = new abLinkedList <abLinkedList <string> >();
        }
Beispiel #4
0
        public void addTxtInfoToNode(string txt, int index1, int index2)
        {
            //get node in first list per index value
            abLinkedList <abLinkedList <String> > .node <abLinkedList <String> > n = abDelimList.GetNode(index1);
            //get list in node
            abLinkedList <string> lst = n.nodeValue;

            abLinkedList <String> .node <String> nn = lst.GetNode(index2);
            nn.setNodeValue3(txt);
        }
Beispiel #5
0
        public void printDelimiters(int index1, int index2)
        {
            //         // while (currentNode != null) {
            //         //     WriteLine(currentNode.value + " , " + currentNode.value2);
            //         // }
            //         // return values;
            //         //abDelimList.printNodeValue();
            //Console.WriteLine(abDelimList.GetNode(0).GetType());
            //get 1st node
            abLinkedList <abLinkedList <String> > .node <abLinkedList <String> > n = abDelimList.GetNode(index1);
            //get list in 1st node
            abLinkedList <string> lst = n.nodeValue;
            //get values of nodes in list at value index
            string d  = lst.getValue(index2);
            string d2 = lst.getValue2(index2);
            string d3 = lst.getValue3(index2);

            Console.WriteLine("Value1: " + d + ", Value2: " + d2 + ", Value3: " + d3);
        }