TuttleOFX  1
FileObject.cpp
Go to the documentation of this file.
00001 #include <FileObject.hpp>
00002 
00003 namespace sequenceParser {
00004 
00005 FileObject::~FileObject()
00006 {
00007 }
00008 
00009 std::ostream& operator<<( std::ostream& os, const FileObject& fo )
00010 {
00011         fo.getCout( os );
00012         return os;
00013 }
00014 
00015 void FileObject::setDirectoryFromPath( const boost::filesystem::path& p )
00016 {
00017         // if it's not a directory, use the parent directory of the file
00018         _directory = p.parent_path();
00019         if( _directory.empty() ) // relative path
00020         {
00021                 _directory = boost::filesystem::current_path();
00022         }
00023 }
00024 
00025 }