pelican/server/src/FileChunker.cpp
/**
 * @details Constructs a FileChunker object.
 */
@details Constructs a FileChunker object.
@details Constructs a FileChunker object .
FileChunker::FileChunker(const ConfigNode& config)
    : AbstractChunker( config)
{
    if( config.getDomElement().isNull() )
    {
        throw( QString("FileChunker: empty config passed in constructor") );
    }
    if( ! config.hasAttribute("file") )
        throw( QString("FileChunker: no \"file\" attribute specified" ));
    _fileName = config.getAttribute("file");
    if( _fileName == "" )
        throw( QString("FileChunker: no filename specified" ));
}
FileChunker :: FileChunker ( const ConfigNode & config ) : AbstractChunker ( config ) { if ( config . getDomElement ( ) . isNull ( ) ) { throw ( QString ( " " ) ) ; } if ( ! config . hasAttribute ( " " ) ) throw ( QString ( " \" \" " ) ) ; _fileName = config . getAttribute ( " " ) ; if ( _fileName == " " ) throw ( QString ( " " ) ) ; }
@details Constructs a FileChunker object.
@details Constructs a FileChunker object .