forked from ngageoint/csm
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathBytestreamIsd.h
66 lines (57 loc) · 1.99 KB
/
BytestreamIsd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//#############################################################################
//
// FILENAME: BytestreamIsd.h
//
// CLASSIFICATION: Unclassified
//
// DESCRIPTION:
//
// Header for the byte stream ISD class derived from the Isd base class.
// This class holds ISD in a string of unspecified format.
// The field "data" is set with the ISD.
//
// LIMITATIONS: None
//
// SOFTWARE HISTORY:
// Date Author Comment
// ----------- ------ -------
// 01-Jul-2003 LMT Initial version.
// 06-Feb-2004 KRW Incorporates changes approved by
// January and February 2004
// Configuration control board.
// 02-Mar-2012 SCM Refactored interfaces.
// 30-Oct-2012 SCM Renamed to BytestreamIsd.h
// 17-Dec-2012 BAH Documentation updates.
//
// NOTES:
//
//#############################################################################
#ifndef __CSM_BYTESTREAMISD_H
#define __CSM_BYTESTREAMISD_H
#include "Isd.h"
namespace csm
{
class CSM_EXPORT_API BytestreamIsd : public Isd
{
public:
explicit BytestreamIsd(const std::string& data,
const std::string& filename = "")
: Isd("BYTESTREAM", filename), theData(data) {}
virtual ~BytestreamIsd();
const std::string data() const { return theData; }
//> This method returns the raw bytestream data associated with the image
// support data. This should not be empty. The string can contain null
// characters, so care must be taken when calling std::string::c_str().
//<
void setData(const std::string& data) { theData = data; }
//> This method returns the raw bytestream data associated with the image
// support data. This should not be empty.
//<
private:
std::string theData;
//> This data member is the ISD data to be used in construting the CSM
// model. It must be supplied.
//<
};
} // namespace csm
#endif