Ignore:
Timestamp:
Jun 22, 2017, 12:02:34 AM (2 years ago)
Author:
faldebey
Message:

CoRE tool fix

Location:
icGREP/icgrep-devel/icgrep/combine/icgrep-test
Files:
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/combine/icgrep-test/icgrep-test.cpp

    r5516 r5527  
    1515IcgrepTest::IcgrepTest(){}
    1616
    17 void resetBash(string fileName){
     17void IcgrepTest::resetBash(string fileName){
    1818        ofstream file;
    1919        file.open(fileName);
     
    2323}
    2424
    25 void clearDir(string dir){
     25void IcgrepTest::clearDir(string dir){
    2626        namespace fs=boost::filesystem;
    2727        fs::path path_to_remove(dir);
     
    3030        }
    3131}
    32 void writeToBash(string fileName, string value){
     32void IcgrepTest::writeToBash(string fileName, string value){
    3333        ofstream file;
    3434        file.open(fileName, ios::app);
     
    3636        file.close();
    3737}
    38 void writetoFile(string content, string dir, int fileNo){
     38void IcgrepTest::writetoFile(string content, string dir, int fileNo){
    3939        string fileName = dir + to_string(fileNo);
    4040        ofstream file;
     
    6060}
    6161
    62 bool hasFlag(string flag, std::vector<string> flags){
     62bool IcgrepTest::hasFlag(string flag, std::vector<string> flags){
    6363        return (std::find(flags.begin(), flags.end(), flag) != flags.end()) ? true : false;
    6464}
    6565
    66 std::vector<string> removeFlag(string flag, std::vector<string> flags){
     66std::vector<string> IcgrepTest::removeFlag(string flag, std::vector<string> flags){
    6767        flags.erase(std::remove(flags.begin(), flags.end(), flag), flags.end());
    6868        return flags;
  • icGREP/icgrep-devel/icgrep/combine/icgrep-test/icgrep-test.h

    r5516 r5527  
    1414        void getResult();
    1515        IcgrepTest();   
     16
     17private:
     18        void resetBash(std::string fileName);
     19        void clearDir(std::string dir);
     20        void writeToBash(std::string fileName, std::string value);
     21        void writetoFile(std::string content, std::string dir, int fileNo);
     22        bool hasFlag(std::string flag, std::vector<std::string> flags);
     23        std::vector<std::string> removeFlag(std::string flag, std::vector<std::string> flags);
    1624};
    1725
Note: See TracChangeset for help on using the changeset viewer.