浏览代码

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 年前
父节点
当前提交
039c51ea86
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 2
    0
      configuration.cpp
  2. 3
    0
      configuration.hpp

+ 2
- 0
configuration.cpp 查看文件

@@ -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 查看文件

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


正在加载...
取消
保存