Changeset 563


Ignore:
Timestamp:
06/19/14 16:10:51 (5 years ago)
Author:
jls17
Message:
  • moved function parameters of CDocTextReferences::TextFindFields? over to the constructor
Location:
branches/work_311
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/work_311/ARInside.cpp

    r562 r563  
    13311331} 
    13321332 
    1333 string CARInside::TextFindFields(const string &inText, string fieldSeparator, int schemaInsideId, int rootLevel, bool findKeywords, const CRefItem *refItem) 
     1333string CARInside::TextFindFields(const string &inText, const string &fieldSeparator, int schemaInsideId, int rootLevel, bool findKeywords, const CRefItem *refItem) 
    13341334{        
    1335         CDocTextReferences textRefs; 
    1336         return textRefs.TextFindFields(inText, fieldSeparator, schemaInsideId, rootLevel, findKeywords, refItem); 
     1335        CDocTextReferences textRefs(inText, fieldSeparator, schemaInsideId, rootLevel, findKeywords, refItem); 
     1336        return textRefs.TextFindFields(); 
    13371337} 
    13381338 
  • branches/work_311/ARInside.h

    r562 r563  
    143143        void AddMenuReference(const string& menuName, const CRefItem& ref); 
    144144 
    145         string TextFindFields(const string &inText, string fieldSeparator, int schemaInsideId, int rootLevel, bool findKeywords, const CRefItem *refItem); 
     145        string TextFindFields(const string &inText, const string &fieldSeparator, int schemaInsideId, int rootLevel, bool findKeywords, const CRefItem *refItem); 
    146146        string XMLFindFields(string inText, int schemaInsideId, int rootLevel, const CRefItem *refItem); 
    147147 
  • branches/work_311/doc/DocTextReferences.cpp

    r562 r563  
    2020#include "../ARInside.h" 
    2121 
    22 CDocTextReferences::CDocTextReferences() 
     22CDocTextReferences::CDocTextReferences(const string& inText, const string &fieldSeparator, int schemaInsideId, int rootLevel, bool findKeywords, const CRefItem *refItem) 
     23: inText(inText), fieldSeparator(fieldSeparator) 
    2324{ 
    2425        pInside = CARInside::GetInstance(); 
    25 } 
    26  
    27 string CDocTextReferences::TextFindFields(string inText, string fieldSeparator, int schemaInsideId, int rootLevel, bool findKeywords, const CRefItem *refItem) 
     26 
     27        this->schemaInsideId = schemaInsideId; 
     28        this->rootLevel = rootLevel; 
     29        this->findKeywords = findKeywords; 
     30        this->refItem = refItem; 
     31} 
     32 
     33string CDocTextReferences::TextFindFields() 
    2834{ 
    2935        try 
  • branches/work_311/doc/DocTextReferences.h

    r562 r563  
    2626 
    2727public: 
    28         CDocTextReferences(); 
     28        CDocTextReferences(const std::string& inText, const std::string &fieldSeparator, int schemaInsideId, int rootLevel, bool findKeywords, const CRefItem *refItem); 
    2929        ~CDocTextReferences() {} 
    3030 
    31         string TextFindFields(string inText, string fieldSeparator, int schemaInsideId, int rootLevel, bool findKeywords, const CRefItem *refItem); 
     31        string TextFindFields(); 
     32 
     33private: 
     34        string inText; 
     35        string fieldSeparator; 
     36        int schemaInsideId; 
     37        int rootLevel; 
     38        bool findKeywords; 
     39        const CRefItem* refItem; 
    3240 
    3341private: 
Note: See TracChangeset for help on using the changeset viewer.