Changeset 5101 for icGREP/icgrep-devel


Ignore:
Timestamp:
Jul 20, 2016, 11:14:38 AM (3 years ago)
Author:
cameron
Message:

Clean out using boost namespaces

Location:
icGREP/icgrep-devel/icgrep
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_engine.cpp

    r5100 r5101  
    6363#include <boost/filesystem.hpp>
    6464#include <boost/iostreams/device/mapped_file.hpp>
    65 using namespace boost::iostreams;
    66 using namespace boost::filesystem;
    6765
    6866#include <fcntl.h>
     
    8583
    8684void GrepEngine::doGrep(const std::string & fileName, const int fileIdx, bool CountOnly, std::vector<uint64_t> & total_CountOnly, bool UTF_16) {
    87     path file(fileName);
     85    boost::filesystem::path file(fileName);
    8886    if (exists(file)) {
    8987        if (is_directory(file)) {
     
    9896    if (fileSize > 0) {
    9997        try {
    100             mapped_file_source source(fileName, fileSize, 0);
     98            boost::iostreams::mapped_file_source source(fileName, fileSize, 0);
    10199            char * fileBuffer = const_cast<char *>(source.data());
    102100            if (CountOnly) {
  • icGREP/icgrep-devel/icgrep/symboltable.cpp

    r5033 r5101  
    3030#include <boost/filesystem.hpp>
    3131#include <boost/iostreams/device/mapped_file.hpp>
    32 using namespace boost::iostreams;
    33 using namespace boost::filesystem;
    3432
    3533typedef void (*SymTableFunctionType)(char * byte_data, size_t filesize);
     
    3836
    3937void process(const std::string & fileName, SymTableFunctionType function) {
    40     const path filePath(fileName);
     38    const boost::filesystem::path filePath(fileName);
    4139    if (exists(filePath) && !is_directory(filePath)) {
    4240        size_t fileSize = file_size(filePath);
    4341        if (fileSize > 0) {
    44             mapped_file file;
    45             file.open(fileName, mapped_file::priv, fileSize, 0);
     42            boost::iostreams::mapped_file file;
     43            file.open(fileName, boost::iostreams::mapped_file::priv, fileSize, 0);
    4644            char * data = file.data();
    4745            assert (data);
  • icGREP/icgrep-devel/icgrep/u8u16.cpp

    r5095 r5101  
    4141#include <boost/filesystem.hpp>
    4242#include <boost/iostreams/device/mapped_file.hpp>
    43 using namespace boost::iostreams;
    44 using namespace boost::filesystem;
    4543
    4644#include <fcntl.h>
     
    318316    char * mFileBuffer;
    319317   
    320     const path file(mFileName);
     318    const boost::filesystem::path file(mFileName);
    321319    if (exists(file)) {
    322320        if (is_directory(file)) {
     
    329327   
    330328    mFileSize = file_size(file);
    331     mapped_file_source mFile;
     329    boost::iostreams::mapped_file_source mFile;
    332330    if (mFileSize == 0) {
    333331        mFileBuffer = nullptr;
  • icGREP/icgrep-devel/icgrep/wc.cpp

    r5100 r5101  
    4545#include <boost/filesystem.hpp>
    4646#include <boost/iostreams/device/mapped_file.hpp>
    47 using namespace boost::iostreams;
    48 using namespace boost::filesystem;
    4947
    5048#include <fcntl.h>
     
    226224    char * fileBuffer;
    227225   
    228     const path file(fileName);
     226    const boost::filesystem::path file(fileName);
    229227    if (exists(file)) {
    230228        if (is_directory(file)) {
     
    237235   
    238236    fileSize = file_size(file);
    239     mapped_file_source mappedFile;
     237    boost::iostreams::mapped_file_source mappedFile;
    240238    if (fileSize == 0) {
    241239        fileBuffer = nullptr;
Note: See TracChangeset for help on using the changeset viewer.