X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fplainfile.cpp;h=734ea041c237f38154be5bc34858167f6acb9558;hb=f7ec9938e6ab4a92690024a53cede9a8b67e6920;hp=07361aadb53cc05212c17652c7b5c57441490577;hpb=f47e8cf4cde2ba5465106e219c803e6424a4f177;p=metaproxy-moved-to-github.git diff --git a/src/plainfile.cpp b/src/plainfile.cpp index 07361aa..734ea04 100644 --- a/src/plainfile.cpp +++ b/src/plainfile.cpp @@ -1,7 +1,7 @@ -/* $Id: plainfile.cpp,v 1.1 2006-01-25 11:27:19 adam Exp $ - Copyright (c) 2005, Index Data. +/* $Id: plainfile.cpp,v 1.3 2006-06-10 14:29:12 adam Exp $ + Copyright (c) 2005-2006, Index Data. -%LICENSE% + See the LICENSE file for details */ #include "config.hpp" @@ -15,7 +15,9 @@ #define PLAINFILE_MAX_LINE 256 -namespace yp2 { +namespace mp = metaproxy_1; + +namespace metaproxy_1 { class PlainFile::Rep { friend class PlainFile; Rep(); @@ -25,28 +27,28 @@ namespace yp2 { }; } -yp2::PlainFile::Rep::Rep() : lineno(1) +mp::PlainFile::Rep::Rep() : lineno(1) { fh = 0; } -yp2::PlainFile::PlainFile() : m_p(new Rep) +mp::PlainFile::PlainFile() : m_p(new Rep) { } -void yp2::PlainFile::Rep::close() +void mp::PlainFile::Rep::close() { delete fh; fh = 0; lineno = 0; } -yp2::PlainFile::~PlainFile() +mp::PlainFile::~PlainFile() { m_p->close(); } -bool yp2::PlainFile::open(const std::string &fname) +bool mp::PlainFile::open(const std::string &fname) { m_p->close(); @@ -60,7 +62,7 @@ bool yp2::PlainFile::open(const std::string &fname) return true; } -bool yp2::PlainFile::getline(std::vector &args) +bool mp::PlainFile::getline(std::vector &args) { args.clear();