Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
SampleReader.cpp
Go to the documentation of this file.
1 
11 #include "SampleReader.h"
12 
13 
15 
16 
17 // constructor
18 SampleReader::SampleReader(){
19 }
20 
21 
22 // destructor
24 }
25 
26 
27 
28 // キーを選択する。複数指定の場合はカンマ( , ) 区切りとする。
29 std::string SampleReader::selectKeys( void ){
30 
31  std::string strTemp;
32 
33  try {
34  strTemp = onSelectKeys();
35  } catch (const std::runtime_error& ex) {
36  strTemp = ex.what();
37 
38  //cerr << ex.what() << endl;
39  }
40  catch (...) {
41  strTemp = "";
42  }
43 
44 
45  return strTemp;
46 
47 };
48 
49 
50 // キーを引数としてサンプルを開く。
52  return onOpenData( strKey );
53 };
54 
55 
std::string selectKeys(void)
select keys
sample information management class
Definition: Sample.h:34
virtual ~SampleReader()
destructor
virtual kome::objects::Sample * onOpenData(std::string strKey)=0
on open data
kome::objects::Sample * openData(std::string strKey)
open data
virtual std::string onSelectKeys(void)=0
on select keys
Sample Reader.