| 40 |
|
|
| 41 |
class event { |
class event { |
| 42 |
private: |
private: |
| 43 |
eventid_t eventID ; |
eventid_t eventID ; |
| 44 |
eventtypeid_t eventTypeID ; |
eventtypeid_t eventTypeID ; |
| 45 |
time_t timestamp ; |
time_t timestamp ; |
| 46 |
userid_t execUID ; |
userid_t execUID ; |
| 47 |
indexid_t indexID ; |
indexid_t indexID ; |
| 48 |
itemid_t itemID ; |
itemid_t itemID ; |
| 49 |
fileid_t fileID ; |
fileid_t fileID ; |
| 50 |
userid_t uid ; |
userid_t uid ; |
| 51 |
groupid_t gid ; |
groupid_t gid ; |
| 52 |
char* remoteHost ; |
char* remoteHost ; |
| 53 |
char* searchKeyword; |
char* searchKeyword ; |
| 54 |
char* loginName ; |
char* additionalInfo; |
| 55 |
const static int validFields[][10]; |
const static int validFields[][10]; |
| 56 |
public: |
public: |
| 57 |
const static eventtypeid_t ETID_INVALID_ETID = 0; |
const static eventtypeid_t ETID_INVALID_ETID = 0; |
| 84 |
event(); |
event(); |
| 85 |
~event(); |
~event(); |
| 86 |
|
|
| 87 |
eventid_t getEventID () const; |
eventid_t getEventID () const; |
| 88 |
eventtypeid_t getEventTypeID () const; |
eventtypeid_t getEventTypeID () const; |
| 89 |
time_t getTimestamp () const; |
time_t getTimestamp () const; |
| 90 |
userid_t getExecUID () const; |
userid_t getExecUID () const; |
| 91 |
indexid_t getIndexID () const; |
indexid_t getIndexID () const; |
| 92 |
itemid_t getItemID () const; |
itemid_t getItemID () const; |
| 93 |
fileid_t getFileID () const; |
fileid_t getFileID () const; |
| 94 |
userid_t getUID () const; |
userid_t getUID () const; |
| 95 |
groupid_t getGID () const; |
groupid_t getGID () const; |
| 96 |
const char* getRemoteHost () const; |
const char* getRemoteHost () const; |
| 97 |
const char* getSearchKeyword() const; |
const char* getSearchKeyword () const; |
| 98 |
const char* getLoginName () const; |
const char* getAdditionalInfo() const; |
| 99 |
|
|
| 100 |
void setEventID ( eventid_t x ); |
void setEventID ( eventid_t x ); |
| 101 |
void setEventTypeID ( eventtypeid_t x ); |
void setEventTypeID ( eventtypeid_t x ); |
| 108 |
void setGID ( groupid_t x ); |
void setGID ( groupid_t x ); |
| 109 |
void setRemoteHost ( const char* x ); |
void setRemoteHost ( const char* x ); |
| 110 |
void setSearchKeyword ( const char* x ); |
void setSearchKeyword ( const char* x ); |
| 111 |
void setLoginName ( const char* x ); |
void setAdditionalInfo( const char* x ); |
| 112 |
|
|
| 113 |
// eventTypeIDを見て、各カラムがNULLかどうかを返す |
// eventTypeIDを見て、各カラムがNULLかどうかを返す |
| 114 |
bool isValidTimestamp () const; |
bool isValidTimestamp () const; |
| 115 |
bool isValidExecUID () const; |
bool isValidExecUID () const; |
| 116 |
bool isValidIndexID () const; |
bool isValidIndexID () const; |
| 117 |
bool isValidItemID () const; |
bool isValidItemID () const; |
| 118 |
bool isValidFileID () const; |
bool isValidFileID () const; |
| 119 |
bool isValidUID () const; |
bool isValidUID () const; |
| 120 |
bool isValidGID () const; |
bool isValidGID () const; |
| 121 |
bool isValidRemoteHost () const; |
bool isValidRemoteHost () const; |
| 122 |
bool isValidSearchKeyword() const; |
bool isValidSearchKeyword () const; |
| 123 |
bool isValidLoginName () const; |
bool isValidAdditionalInfo() const; |
| 124 |
}; |
}; |
| 125 |
|
|
| 126 |
typedef class event event_t; |
typedef class event event_t; |