Changeset 1461

Show
Ignore:
Timestamp:
07/12/05 12:34:25 (3 years ago)
Author:
madcat
Message:

Added PartData::getName() method.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hydranode/include/hn/partdata.h

    r1456 r1461  
    229229        bool isComplete(uint64_t begin, uint64_t end) const; 
    230230        //!@} 
     231 
    231232        /** 
    232233         * \name Generic accessors 
     
    237238        void      setMetaData(MetaData *md); 
    238239        void      setDestination(const boost::filesystem::path &p) { m_dest=p; } 
     240 
    239241        uint64_t  getSize() const { return m_size; } 
    240242        boost::filesystem::path getLocation() const { return m_loc; } 
    241243        boost::filesystem::path getDestination() const { return m_dest; } 
     244        std::string getName() const { return m_dest.leaf(); } 
     245 
    242246        uint64_t  getCompleted() const; //!< Returns number of bytes completed 
    243         //! Returns number of full sources 
    244247        uint32_t  getFullSourceCnt() const { return m_fullSourceCnt; } 
     248 
    245249        std::vector<bool> getPartStatus(uint32_t chunkSize) const { 
    246250                CHECK_THROW(m_partStatus.find(chunkSize) != m_partStatus.end());