Przeglądaj źródła

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 9 lat temu
rodzic
commit
039c51ea86
2 zmienionych plików z 5 dodań i 0 usunięć
  1. 2
    0
      configuration.cpp
  2. 3
    0
      configuration.hpp

+ 2
- 0
configuration.cpp Wyświetl plik

@@ -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 Wyświetl plik

@@ -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.


Ładowanie…
Anuluj
Zapisz