Browse Source

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 years ago
parent
commit
039c51ea86
2 changed files with 5 additions and 0 deletions
  1. 2
    0
      configuration.cpp
  2. 3
    0
      configuration.hpp

+ 2
- 0
configuration.cpp View File

++Index; // past it and scan for our name. ++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, 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 char x = Data.Data(Index + I); // get each corresponding Data byte
if(x != myName.at(I)) { // check it sudden death style. if(x != myName.at(I)) { // check it sudden death style.

+ 3
- 0
configuration.hpp View File



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


int startOfElementIndex; // AVD

}; };


//// Configuration Attribute /////////////////////////////////////////////////// //// Configuration Attribute ///////////////////////////////////////////////////
int Index(int i); // Changes the current Index. int Index(int i); // Changes the current Index.
int Line(); // Reads the current Line number. int Line(); // Reads the current Line number.
int addNewLines(int Count); // Increments the Line number. int addNewLines(int Count); // Increments the Line number.
char const *Buffer() const { return myDataBuffer; } // AVD


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



Loading…
Cancel
Save