include/Greeting.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: Greeting.H 481 2006-02-23 16:36:07Z eduardo $ */
00007 #ifndef __GREETING_H__
00008 #define __GREETING_H__
00009 
00010 #include <string>
00011 #include <set>
00012 
00013 #include "libepp_nicbr.H"
00014 
00015 using std::string;
00016 using std::set;
00017 
00018 LIBEPP_NICBR_NS_BEGIN
00019 
00021 class Greeting
00022 {
00023 public:
00024     
00026   enum Access {
00027     UNSET_AC = -1,
00028     ALL = 0,
00029     NONE_AC,
00030     NULL_AC,
00031     PERSONAL,
00032     PERSONAL_AND_OTHER,
00033     OTHER_AC
00034   };
00035   
00037   enum Purpose {
00038     ADMIN = 0,
00039     CONTACT,
00040     PROV,
00041     OTHER_PR
00042   };
00043 
00045   enum Recipient {
00046     OTHER_RC = 0,
00047     OURS,
00048     PUBLIC,
00049     SAME,
00050     UNRELATED
00051   };
00052 
00054   enum Retention {
00055     UNSET_RT = -1,
00056     BUSINESS = 0,
00057     INDEFINITE,
00058     LEGAL,
00059     NONE_RT,
00060     STATED
00061   };
00062 
00064 
00067   void set_svID(const string &svID);
00068     
00070 
00073   void set_svDate(const string &svDate);
00074 
00076 
00079   void set_version(const string &version);
00080     
00082 
00085   void set_lang(const string &lang);
00086   
00088 
00091   void set_objURI(const string &objURI);
00092     
00094 
00097   void set_extURI(const string &extURI); 
00098   
00100 
00103   void set_access(const Access &access);
00104   
00106 
00109   void set_purpose(const Purpose &purpose); 
00110     
00112 
00115   void set_recipient(const Recipient &recipient); 
00116 
00118 
00121   void set_recDesc(const string &recDesc);
00122   
00124 
00127   void set_retention(const Retention &retention);
00128   
00129   
00131 
00135   void set_expiry(const int &type, const string &expiry);
00136   
00138 
00141   string get_svID();
00142     
00144 
00147   string get_svDate();
00148 
00150 
00153   set<string> get_version();
00154   
00156 
00159   set<string> get_lang();
00160     
00162 
00165   set<string> get_objURI(); 
00166     
00168 
00171   set<string> get_extURI(); 
00172   
00174 
00177   Access get_access();
00178   
00180 
00183   set<Purpose> get_purpose(); 
00184     
00186 
00189   set<Recipient> get_recipient();
00190 
00192 
00195   string get_recDesc();
00196   
00198 
00201   Retention get_retention();
00202   
00204 
00207   int get_type_expiry();
00208   
00210 
00213   string get_expiry();
00214 
00216   void reset() 
00217   { 
00218     _svID = "";
00219     _svDate = "";
00220     _version.clear();
00221     _lang.clear();
00222     _objURI.clear();
00223     _extURI.clear();
00224     _access = UNSET_AC;
00225     _purpose.clear();
00226     _recipient.clear();
00227     _recDesc = "";
00228     _retention = UNSET_RT;
00229     _type_expiry = -1;
00230     _expiry = "";
00231   }
00232 
00233 protected:
00235   string _svID;  
00236 
00238   string _svDate;
00239 
00241   set<string> _version;
00242 
00244   set<string> _lang;
00245 
00247   set<string> _objURI;
00248 
00250   set<string> _extURI;
00251 
00253   Access _access;
00254 
00256   set<Purpose> _purpose;
00257 
00259   set<Recipient> _recipient;
00260 
00262   string _recDesc;
00263 
00265   Retention _retention;
00266 
00268   int _type_expiry;
00269 
00271   string _expiry;
00272 };
00273 
00274 LIBEPP_NICBR_NS_END
00275 #endif //__GREETING_H__

Generated on Thu Jun 8 17:40:00 2006 for libepp_nicbr by  doxygen 1.4.6