Extern/DXF/Header/libdwgr.cpp
/*reads metadata and loads image preview*/
reads metadata and loads image preview
reads metadata and loads image preview
bool dwgR::getPreview(){
    bool isOk = false;
    std::ifstream filestr;
    isOk = openFile(&filestr);
    if (!isOk)
        return false;
    isOk = reader->readMetaData();
    if (isOk) {
        isOk = reader->readPreview();
    } else
        error = DRW::BAD_READ_METADATA;
    filestr.close();
    if (reader != NULL) {
        delete reader;
        reader = NULL;
    }
    return isOk;
}
bool dwgR :: getPreview ( ) { bool isOk = false ; std :: ifstream filestr ; isOk = openFile ( & filestr ) ; if ( ! isOk ) return false ; isOk = reader -> readMetaData ( ) ; if ( isOk ) { isOk = reader -> readPreview ( ) ; } else error = DRW :: BAD_READ_METADATA ; filestr . close ( ) ; if ( reader != NULL ) { delete reader ; reader = NULL ; } return isOk ; }
reads metadata and loads image preview
reads metadata and loads image preview