X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fplainfile.cpp;h=38e21489f56b1f73bb494648ec1b0efd9aeba38f;hb=79100c2ae2dac4bdde4f4d46b69e147562b4ec6c;hp=07361aadb53cc05212c17652c7b5c57441490577;hpb=ddef5183e8d66d71d9ded936a0c68b947d7804e0;p=metaproxy-moved-to-github.git diff --git a/src/plainfile.cpp b/src/plainfile.cpp index 07361aa..38e2148 100644 --- a/src/plainfile.cpp +++ b/src/plainfile.cpp @@ -1,5 +1,5 @@ -/* $Id: plainfile.cpp,v 1.1 2006-01-25 11:27:19 adam Exp $ - Copyright (c) 2005, Index Data. +/* $Id: plainfile.cpp,v 1.2 2006-03-16 10:40:59 adam Exp $ + Copyright (c) 2005-2006, Index Data. %LICENSE% */ @@ -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();