Pārlūkot izejas kodu

Proof-of-concept changes to provide entire element to the caller.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@67 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz pirms 10 gadiem
vecāks
revīzija
039c51ea86
2 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 2
    0
      configuration.cpp
  2. 3
    0
      configuration.hpp

+ 2
- 0
configuration.cpp Parādīt failu

@@ -702,6 +702,8 @@ bool ConfigurationElement::interpret(ConfigurationData& Data) {
++Index; // past it and scan for our name.
}

startOfElementIndex = Data.Index(); // AVD

for(unsigned int I = 0; I < myName.length(); I++) { // For the length of our name,
char x = Data.Data(Index + I); // get each corresponding Data byte
if(x != myName.at(I)) { // check it sudden death style.

+ 3
- 0
configuration.hpp Parādīt failu

@@ -376,6 +376,8 @@ class ConfigurationElement {

bool interpret(ConfigurationData& Data); // (re) Interpret this data.

int startOfElementIndex; // AVD

};

//// Configuration Attribute ///////////////////////////////////////////////////
@@ -597,6 +599,7 @@ class ConfigurationData {
int Index(int i); // Changes the current Index.
int Line(); // Reads the current Line number.
int addNewLines(int Count); // Increments the Line number.
char const *Buffer() const { return myDataBuffer; } // AVD

std::stringstream Log; // Convenient Interpret log.


Notiek ielāde…
Atcelt
Saglabāt