1 #ifndef bbas_1d_array_string_h
2 #define bbas_1d_array_string_h
3 //:
4 // \file
5 #include <iostream>
6 #include <string>
7 #include <vbl/vbl_ref_count.h>
8 #include <vbl/vbl_smart_ptr.h>
9 #include <vbl/vbl_array_1d.h>
10 #include <vsl/vsl_binary_io.h>
11 #ifdef _MSC_VER
12 #  include <vcl_msvc_warnings.h>
13 #endif
14 class bbas_1d_array_string: public vbl_ref_count
15 {
16  public:
bbas_1d_array_string(unsigned n)17   bbas_1d_array_string(unsigned n):data_array(n, ""){}
18   vbl_array_1d<std::string> data_array;
19 };
20 
21 typedef vbl_smart_ptr<bbas_1d_array_string> bbas_1d_array_string_sptr;
22 
23 //: Binary write to stream
24 void vsl_b_write(vsl_b_ostream & os, bbas_1d_array_string const& a);
25 
26 //: Binary write pointer to stream
27 void vsl_b_write(vsl_b_ostream& os, const bbas_1d_array_string_sptr &aptr);
28 
29 //: Binary load from stream.
30 void vsl_b_read(vsl_b_istream & is, bbas_1d_array_string &a);
31 
32 //: Binary load pointer from stream.
33 
34 void vsl_b_read(vsl_b_istream& is, bbas_1d_array_string* aptr);
35 void vsl_b_read(vsl_b_istream& is, bbas_1d_array_string_sptr& aptr);
36 
37 #include <bpro/core/bbas_pro/bbas_1d_array_string_sptr.h>
38 #endif
39