~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to frmts/pcidsk/sdk/segment/cpcidsksegment.h

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        void        LoadSegmentPointer( const char *segment_pointer );
60
60
        void        LoadSegmentHeader();
61
61
 
62
 
        PCIDSKBuffer &GetHeader();
 
62
        PCIDSKBuffer &GetHeader() { return header; }
 
63
        void        FlushHeader();
63
64
 
64
65
        void      WriteToFile( const void *buffer, uint64 offset, uint64 size );
65
66
        void      ReadFromFile( void *buffer, uint64 offset, uint64 size );
71
72
        uint64      GetContentSize() { return data_size - 1024; }
72
73
        bool        IsAtEOF();
73
74
 
74
 
        std::string GetMetadataValue( std::string key );
75
 
        void        SetMetadataValue( std::string key, std::string value );
76
 
        std::vector<std::string> GetMetadataKeys();
 
75
        void        SetDescription( const std::string &description);
 
76
        
 
77
        std::string GetMetadataValue( const std::string &key ) const;
 
78
        void        SetMetadataValue( const std::string &key, const std::string &value );
 
79
        std::vector<std::string> GetMetadataKeys() const;
77
80
            
78
81
        virtual void Synchronize() {}
 
82
        
 
83
        std::vector<std::string> GetHistoryEntries() const;
 
84
        void SetHistoryEntries( const std::vector<std::string> &entries );
 
85
        void PushHistory(const std::string &app,
 
86
                         const std::string &message);
 
87
 
 
88
        virtual std::string ConsistencyCheck() { return ""; }
79
89
 
80
90
    protected:
81
91
        PCIDSKFile *file;
86
96
        char        segment_flag;
87
97
        std::string segment_name;
88
98
 
89
 
        uint64  data_offset;     // includes 1024 byte segment header.
 
99
        uint64      data_offset;     // includes 1024 byte segment header.
90
100
        uint64      data_size;
91
101
 
92
102
        PCIDSKBuffer header;
93
103
 
94
 
        MetadataSet  *metadata;
 
104
        mutable MetadataSet  *metadata;
 
105
        
 
106
        std::vector<std::string> history_;
 
107
 
 
108
        void        MoveData( uint64 src_offset, uint64 dst_offset, 
 
109
                              uint64 size_in_bytes );
95
110
    };
96
111
    
97
112
} // end namespace PCIDSK