home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / lancelot / ldbase.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  22.5 KB  |  803 lines

  1. /******************************************************************************
  2. * .FILE:         ldbase.hpp                                                   *
  3. *                                                                             *
  4. * .DESCRIPTION:  Lancelot Sample Program:              Class Definition       *
  5. *                                                                             *
  6. * .CLASSES:      LStatusData                                                  *
  7. *                LBadgeData                                                   *
  8. *                LEmployeeData                                                *
  9. *                LSkillData                                                   *
  10. *                LProjectData                                                 *
  11. *                LTimeCardData                                                *
  12. *                LAcctData                                                    *
  13. *                LTaskData                                                    *
  14. *                LQueryData                                                   *
  15. *                LDeleteEmployee                                              *
  16. *                                                                             *
  17. * .COPYRIGHT:                                                                 *
  18. *    Licensed Material - Program-Property of IBM                              *
  19. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  20. *                                                                             *
  21. * .DISCLAIMER:                                                                *
  22. *   The following [enclosed] code is sample code created by IBM               *
  23. *   Corporation.  This sample code is not part of any standard IBM product    *
  24. *   and is provided to you solely for the purpose of assisting you in the     *
  25. *   development of your applications.  The code is provided 'AS IS',          *
  26. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  27. *   arising out of your use of the sample code, even if they have been        *
  28. *   advised of the possibility of such damages.                               *
  29. *                                                                             *
  30. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  31. *                                                                             *
  32. ******************************************************************************/
  33. #ifndef _LDBASE_
  34. #define _LDBASE_
  35.  
  36.  
  37. #include <iostream.h>
  38. #include <iprofile.hpp>
  39. #include <idate.hpp>
  40. #include <idate.hpp>
  41. #include "litems.hpp"
  42.  
  43. #include <istring.hpp>
  44. #include <ikeybag.h>
  45. typedef IKeyBag<Item, Entry> Items;
  46.  
  47. const int tcEntries = 18 ;
  48.  
  49. // forward declarations
  50. class LQueryData;
  51. class TimeCardPage;
  52.  
  53. //----------------------------------------------------------------------------
  54. // class LStatusData
  55. //----------------------------------------------------------------------------
  56. class LStatusData : public IBase
  57. {
  58. public: // ---------------------- PUBLIC -------------------------------------
  59.  
  60. //----------------------- Contructor/Destructor ------------------------------
  61. // Class LStatusData :: LStatusData()
  62. //----------------------------------------------------------------------------
  63.   LStatusData(const IString empNum);
  64.   LStatusData(LQueryData& qd);
  65.  
  66.   ~LStatusData();
  67.  
  68. LStatusData&
  69.   save( const  IString  empNum,
  70.         const IString statusRate,
  71.         const IString statusStart,
  72.         const IString statusEnd,
  73.         Boolean tog);
  74.  
  75. inline IString
  76.   statusActive() {return StatusActive;};
  77.  
  78. inline IString
  79.   statusInactive() {return StatusInactive;};
  80.  
  81. inline IString
  82.   statusRate()   {return StatusRate;};
  83.  
  84. inline IString
  85.   statusStart()  {return StatusStart;};
  86.  
  87. inline IString
  88.   statusEnd()    {return StatusEnd;};
  89.  
  90. inline IString
  91.   theRateRange()  {return TheRateRange;;};
  92.  
  93. inline IString
  94.   theStartRange() {return TheStartRange;}
  95.  
  96. inline IString
  97.   theEndRange()   {return TheEndRange; ;};
  98.  
  99. protected://----------------------- PROTECTED --------------------------------
  100.  
  101. LStatusData&
  102.   load(const  IString  empNum);
  103.  
  104. LStatusData&
  105.   loadQueryData(LQueryData& qd);
  106.  
  107. private:  //----------------------- PRIVATE ----------------------------------
  108.  
  109.  
  110. IString
  111.   StatusInactive,
  112.   StatusActive,
  113.   StatusRate,
  114.   StatusStart,
  115.   StatusEnd,
  116.   TheRateRange,
  117.   TheStartRange,
  118.   TheEndRange;
  119.  
  120. };
  121.  
  122.  
  123. //----------------------------------------------------------------------------
  124. // class LBadgeData
  125. //----------------------------------------------------------------------------
  126. class LBadgeData  : public IBase
  127. {
  128.  
  129. public: // ---------------------- PUBLIC -------------------------------------
  130.  
  131. friend class GeneralPage;
  132.  
  133. //----------------------- Contructor/Destructor ------------------------------
  134. // Class LBadgeData :: LBadgeData()
  135. //----------------------------------------------------------------------------
  136.   LBadgeData();
  137.   LBadgeData(const  IString &eNum);
  138.   LBadgeData(LQueryData& qd);
  139.  
  140.   ~LBadgeData();
  141.  
  142. LBadgeData&
  143.   save(const  IString  eNum,
  144.        const  IString  badgeNumber,
  145.        const  IString  issueDate,
  146.        const  IString  expDate );
  147.  
  148. inline IString   badgeNumber() {return BadgeNumber;};
  149. inline IString   badgeIssue()  {return BadgeIssue;};
  150. inline IString   badgeExpire() {return BadgeExpire;};
  151. inline IString   theIssueRange() {return TheIssueRange;};
  152. inline IString   theExpRange() {return TheExpRange;};
  153.  
  154. protected: //----------------------- PROTECTED  ----------------------------------
  155.  
  156. LBadgeData&
  157.   load(const  IString  &eNum);
  158.  
  159. LBadgeData&
  160.   loadQueryData(LQueryData& qd);
  161.  
  162. private:   //----------------------- PRIVATE ----------------------------------
  163.  
  164. IString     BadgeNumber,
  165.             BadgeIssue,
  166.             BadgeExpire,
  167.             TheIssueRange,
  168.             TheExpRange;
  169.  
  170. };
  171.  
  172.  
  173.  
  174. //----------------------------------------------------------------------------
  175. // class LEmployeeData
  176. //----------------------------------------------------------------------------
  177. class LEmployeeData  : public IBase
  178. {
  179. public: // ---------------------- PUBLIC -------------------------------------
  180.  
  181. friend class LPersonnelCnr;
  182.  
  183.  
  184. enum EmplType {
  185.                Regular,
  186.                Manager,
  187.                Supplemental,
  188.                Unemployed
  189.                };
  190.  
  191. //----------------------- Contructor/Destructor ------------------------------
  192. // Class LEmployeeData :: LEmployeeData()
  193. //----------------------------------------------------------------------------
  194.  
  195.   LEmployeeData();
  196.   LEmployeeData(const IString empNum);
  197.   LEmployeeData(LQueryData& qd);
  198.  
  199.   ~LEmployeeData();
  200.  
  201. LEmployeeData&
  202.   save(const  IString empNum);
  203.  
  204. inline IString employeeNumber()  const { return theEmployeeNum; }
  205. inline IString lastName()        const { return theLastName; }
  206. inline IString firstName()       const { return theFirstName; }
  207. inline IString middleInitial()   const { return theMiddleInitial; }
  208. inline IString internalPhone()   const { return theInternalPhone; }
  209. inline IString externalPhone()   const { return theExternalPhone; }
  210. inline IString internalAddress() const { return theInternalAddr; }
  211. inline IString externalAddress() const { return theExternalAddr; }
  212. inline IString room()            const { return theRoom; }
  213. inline IString building()        const { return theBuilding; }
  214. inline IString department()      const { return theDeptName; }
  215. inline IString division()        const { return theDivision; }
  216. inline EmplType employeeType()   const { return theEmployeeType; }
  217. inline IString badgeNumber()     const { return theBadgeNumber; }
  218. inline IString badgeIssue()      const { return theBadgeIssue; }
  219. inline IString badgeExpires()    const { return theBadgeExpire; }
  220. inline IString managerNumber()   const { return theManagerNum; }
  221. inline IString managerName()     const { return theManagerName; }
  222.  
  223. inline LEmployeeData& setEmployeeNumber(IString st)  {  theEmployeeNum=st; return *this;}
  224. inline LEmployeeData& setLastName(IString st)        {  theLastName=st; return *this;}
  225. inline LEmployeeData& setFirstName(IString st)       {  theFirstName=st;return *this;}
  226. inline LEmployeeData& setMiddleInitial(IString st)   {  theMiddleInitial=st;return *this;}
  227. inline LEmployeeData& setInternalPhone(IString st)   {  theInternalPhone=st;return *this;}
  228. inline LEmployeeData& setExternalPhone(IString st)   {  theExternalPhone=st;return *this;}
  229. inline LEmployeeData& setInternalAddress(IString st) {  theInternalAddr=st;return *this;}
  230. inline LEmployeeData& setExternalAddress(IString st) {  theExternalAddr=st;return *this;}
  231. inline LEmployeeData& setRoom(IString st)            {  theRoom=st;return *this;}
  232. inline LEmployeeData& setBuilding(IString st)        {  theBuilding=st;return *this;}
  233. inline LEmployeeData& setDepartment(IString st)      {  theDeptName=st;return *this;}
  234. inline LEmployeeData& setDivision(IString st)        {  theDivision=st;return *this;}
  235. inline LEmployeeData& setEmployeeType(EmplType st)   {  theEmployeeType=st;return *this;}
  236. inline LEmployeeData& setBadgeNumber(IString st)     {  theBadgeNumber=st;return *this;}
  237. inline LEmployeeData& setBadgeIssue(IString st)      {  theBadgeIssue=st; return *this;}
  238. inline LEmployeeData& setBadgeExpires(IString st)    {  theBadgeExpire=st;return *this;}
  239. inline LEmployeeData& setManagerNumber(IString st)   {  theManagerNum=st; return *this;}
  240. inline LEmployeeData& setManagerName(IString st)     {  theManagerName=st;return *this;}
  241.  
  242.  
  243. protected: //----------------------- PROTECTED ----------------------------------
  244.  
  245. LEmployeeData&
  246.   load(const  IString empNum);
  247.  
  248. LEmployeeData&
  249.   loadQryData(LQueryData& qd);
  250.  
  251. private: //----------------------- PRIVATE ----------------------------------
  252.  
  253. IString
  254.   theEmployeeNum,
  255.   theLastName,
  256.   theFirstName,
  257.   theMiddleInitial,
  258.   theInternalPhone,
  259.   theExternalPhone,
  260.   theInternalAddr,
  261.   theExternalAddr,
  262.   theRoom,
  263.   theBuilding,
  264.   theDeptName,
  265.   theDivision;
  266.  
  267. EmplType
  268.   theEmployeeType;
  269.  
  270. IString
  271.   theBadgeNumber,
  272.   theBadgeIssue,
  273.   theBadgeExpire,
  274.   theManagerNum,
  275.   theManagerName;
  276.  
  277. LBadgeData
  278.   badgeData;
  279.  
  280. };
  281.  
  282.  
  283. //----------------------------------------------------------------------------
  284. // Class LSkillData :: LSkillData()
  285. //----------------------------------------------------------------------------
  286. class LSkillData    : public IBase
  287. {
  288.  
  289. public: // ---------------------- PUBLIC -------------------------------------
  290.  
  291. enum Rule {
  292.            na,
  293.            file,
  294.            add,
  295.            replace,
  296.            remove
  297.            };
  298.  
  299. //----------------------- Contructor/Destructor ------------------------------
  300. // Class LSkillData
  301. //----------------------------------------------------------------------------
  302.   LSkillData(const IString empNum = NULL);
  303.   LSkillData(LQueryData& sd);
  304.   ~LSkillData();
  305.  
  306. LSkillData&
  307.   save(const  IString empNum);
  308.  
  309.       inline Boolean
  310.          getNext(){ itemsCur.setToNext();
  311.                     return itemsCur.isValid();}
  312.  
  313.       inline Boolean
  314.          setFirst(){ itemsCur.setToFirst();
  315.                      return itemsCur.isValid();}
  316.  
  317. inline Boolean isValid(){ return itemsCur.isValid();}
  318.  
  319. LSkillData&
  320.   deleteCurrentItem();
  321.  
  322. Boolean
  323.   getItem(  IString& i1,
  324.             IString& i2,
  325.             Rule& rule,
  326.             Boolean useKey = true);
  327.  
  328. Boolean
  329.   getItem(  IString& i1,
  330.             IString& i2,
  331.             Boolean useKey = true);
  332.  
  333. Boolean
  334.   putItem( const IString& i1,
  335.            const IString& i2,
  336.            const Rule&  rule=add);
  337.  
  338. LSkillData&
  339.   emptyBag();
  340.  
  341. inline IString theRange() const {return TheRange;};
  342.  
  343. inline IString employeeNumber() const {return employeeNum;};
  344.  
  345. LSkillData&
  346.   operator = ( const LSkillData& from );
  347.  
  348. protected: //----------------------- PROTECTED --------------------------------
  349.  
  350. LSkillData&
  351.   load(const  IString empNum);
  352.  
  353. LSkillData&
  354.   loadQueryData(LQueryData& qd);
  355.  
  356. Items
  357.   getItems() const {return items;};
  358.  
  359. Items::Cursor
  360.   getItemsCursor() const {return itemsCur;};
  361.  
  362. private: //----------------------- PRIVATE ----------------------------------
  363.  
  364. Items
  365.   items;
  366.  
  367. Items::Cursor
  368.   itemsCur;
  369.  
  370. IString
  371.   employeeNum,
  372.   TheRange;
  373.  
  374. };
  375.  
  376.  
  377. //----------------------------------------------------------------------------
  378. // Class LProjectData :: LProjectData()
  379. //----------------------------------------------------------------------------
  380. class LProjectData   : public IBase
  381. {
  382. public: // ---------------------- PUBLIC -------------------------------------
  383.  
  384. enum Rule {
  385.            na,
  386.            file,
  387.            add,
  388.            replace,
  389.            remove
  390.            };
  391.  
  392. //----------------------- Contructor/Destructor ------------------------------
  393. // Class LProjectData :: LProjectData()
  394. //----------------------------------------------------------------------------
  395.   LProjectData(const IString empNum = NULL);
  396.   ~LProjectData();
  397.  
  398. LProjectData&
  399.   save(const IString empNum);
  400.  
  401. LProjectData&
  402.   deleteCurrentItem();
  403.  
  404. Boolean
  405.   getItem(  IString& i1,
  406.             IString& i2,
  407.             IString& i3,
  408.             IString& i4,
  409.             Rule rule );
  410.  
  411. LProjectData&
  412.   putItem( const IString& i1,
  413.            const IString& i2,
  414.            const IString& i3,
  415.            const IString& i4,
  416.            const Rule&  rule=add );
  417.  
  418. LProjectData&
  419.   emptyBag();
  420.  
  421.       inline Boolean
  422.          getNext(){ itemsCur.setToNext();
  423.                     return itemsCur.isValid();}
  424.  
  425.       inline Boolean
  426.          setFirst(){ return(itemsCur.setToFirst());}
  427.  
  428. inline IString employeeNumber() const {return employeeNum;};
  429.  
  430. LProjectData&
  431.   operator = ( const LProjectData& from );
  432.  
  433. protected: //----------------------- PROTECTED --------------------------------
  434.  
  435. LProjectData&
  436.   load(const  IString empNum);
  437.  
  438. Items
  439.   getItems() const {return items;};
  440.  
  441. Items::Cursor
  442.   getItemsCursor() const {return itemsCur;};
  443.  
  444. private: //----------------------- PRIVATE --------------------------------
  445.  
  446. Items
  447.   items;
  448.  
  449. Items::Cursor
  450.   itemsCur;
  451.  
  452. IString
  453.   employeeNum; // the key
  454.  
  455. };
  456.  
  457. //----------------------------------------------------------------------------
  458. // Class TCard :: TCard()
  459. //----------------------------------------------------------------------------
  460. class TCard  : public IBase
  461. {
  462. public: // ---------------------- PUBLIC -------------------------------------
  463.  
  464. friend class TimeCardPage;
  465.  
  466. //----------------------- Contructor/Destructor ------------------------------
  467. // Class TCard :: TCard()
  468. //----------------------------------------------------------------------------
  469.  
  470.   TCard();
  471.   ~TCard();
  472.  
  473. inline TCard&  setDate(const IString & s)        { Date = s; return *this;};
  474. inline TCard&  setProjectName(const IString & s) { ProjectName = s;return *this;};
  475. inline TCard&  setTaskName(const IString & s)    { TaskName = s;return *this;};
  476. inline TCard&  setHours(const IString & s)       { Hours = s;return *this;};
  477.  
  478. inline IString date()  { return Date; };
  479. inline IString projectName()  { return ProjectName;};
  480. inline IString taskName()     { return TaskName;};
  481. inline IString hours()        { return Hours;};
  482.  
  483. private: //----------------------- PRIVATE ----------------------------------
  484.  
  485. IString
  486.   Date,
  487.   ProjectName,
  488.   TaskName,
  489.   Hours;
  490.  
  491. IString
  492.   employeeNum; // the key
  493.  
  494. };
  495.  
  496.  
  497. //----------------------------------------------------------------------------
  498. // Class LTimeCardData :: LTimeCardData()
  499. //----------------------------------------------------------------------------
  500. class LTimeCardData  : public IBase
  501. {
  502. public: // ---------------------- PUBLIC -------------------------------------
  503.  
  504. friend class TimeCardPage;
  505. friend class TimeCard;
  506. friend class DrawingArea;
  507. friend class TaskPage;
  508. friend class LTimeCardPieChart;
  509.  
  510. //----------------------- Contructor/Destructor ------------------------------
  511. // Class LTimeCardData :: LTimeCardData()
  512. //----------------------------------------------------------------------------
  513.   LTimeCardData(const char * empNum, const IDate &weekEnding);
  514.   ~LTimeCardData();
  515.  
  516. inline IString employeeNumber() const {return employeeNum;};
  517.  
  518. protected: //----------------------- PROTECTED --------------------------------
  519.  
  520. LTimeCardData& load(const  IString empNum);
  521. LTimeCardData& save(const  IString empNum);
  522.  
  523. private: //----------------------- PRIVATE ----------------------------------
  524.  
  525. IDate
  526.   theWeek;
  527.  
  528. TCard
  529.   tcard[tcEntries];
  530.  
  531. IString
  532.   employeeNum;
  533.  
  534. };
  535.  
  536.  
  537. //----------------------------------------------------------------------------
  538. // Class LAcctData :: LAcctData()
  539. //----------------------------------------------------------------------------
  540. class LAcctData  : public IBase
  541. {
  542. public: // ---------------------- PUBLIC -------------------------------------
  543.  
  544.   enum Rule {
  545.              na,
  546.              file,
  547.              add,
  548.              replace,
  549.              remove
  550.              };
  551.  
  552. //----------------------- Contructor/Destructor ------------------------------
  553. // Class LAcctData :: LAcctData()
  554. //----------------------------------------------------------------------------
  555.  
  556.   LAcctData(const IString empNum = NULL);
  557.   LAcctData(LQueryData& qd);
  558.  
  559.   ~LAcctData();
  560.  
  561. LAcctData&
  562.   save(const IString empNum);
  563.  
  564. LAcctData&
  565.   deleteCurrentItem();
  566.  
  567. Boolean
  568.   getItem(  IString& i1,
  569.             IString& i2,
  570.             Rule& rule,
  571.             Boolean useKey = true);
  572.  
  573. Boolean
  574.   getItem(  IString& i1,
  575.             IString& i2,
  576.             Boolean useKey=true);
  577.  
  578. LAcctData&
  579.   putItem(  const IString& i1,
  580.             const IString& i2,
  581.             const Rule&  rule=add );
  582.  
  583. LAcctData&
  584.   emptyBag();
  585.  
  586.       inline Boolean
  587.          getNext()  { itemsCur.setToNext();
  588.                       return itemsCur.isValid();}
  589.       inline Boolean
  590.          setFirst() { itemsCur.setToFirst();
  591.                       return itemsCur.isValid();}
  592. inline Boolean
  593.   isValid(){ return itemsCur.isValid();}
  594.  
  595. inline IString theRange() const {return TheRange;};
  596.  
  597. inline IString employeeNumber() const {return employeeNum;};
  598.  
  599. LAcctData&
  600.   operator = ( const LAcctData& from );
  601.  
  602. protected: //----------------------- PROTECTED---------------------------------
  603.  
  604. LAcctData&
  605.   load(const IString empNum);
  606.  
  607. LAcctData&
  608.   loadQueryData(LQueryData& qd);
  609.  
  610. Items
  611.   getItems() const {return items;};
  612.  
  613. Items::Cursor
  614.   getItemsCursor() const {return itemsCur;};
  615.  
  616. private: //----------------------- PRIVATE ----------------------------------
  617.  
  618. Items
  619.   items;
  620.  
  621. Items::Cursor
  622.   itemsCur;
  623.  
  624. IString
  625.   employeeNum,
  626.   TheRange;
  627.  
  628. };
  629.  
  630.  
  631.  
  632. //----------------------------------------------------------------------------
  633. // Class LTaskData :: LTaskData()
  634. //----------------------------------------------------------------------------
  635. class LTaskData : public IBase
  636. {
  637. public: // ---------------------- PUBLIC -------------------------------------
  638.  
  639. enum Rule {
  640.            na,
  641.            file,
  642.            add,
  643.            replace,
  644.            remove
  645.            };
  646.  
  647. //----------------------- Contructor/Destructor ------------------------------
  648. // Class LTaskData :: LTaskData()
  649. //----------------------------------------------------------------------------
  650.   LTaskData(const IString empNum=NULL);
  651.   ~LTaskData();
  652.  
  653. LTaskData&
  654.   save(const IString empNum);
  655.  
  656.       inline Boolean
  657.          getNext() { itemsCur.setToNext();
  658.                      return itemsCur.isValid();}
  659.  
  660.       inline Boolean
  661.          setFirst() { return(itemsCur.setToFirst());}
  662.  
  663. LTaskData&
  664.   deleteCurrentItem();
  665.  
  666. Boolean
  667.   getItem(  IString& i1,
  668.             IString& i2,
  669.             IString& i3,
  670.             Rule& rule);
  671.  
  672. Boolean
  673.   putItem(   const IString& i1,
  674.              const IString& i2,
  675.              const IString& i3,
  676.              const Rule&  rule=add );
  677.  
  678. LTaskData&
  679.   emptyBag();
  680.  
  681. Boolean
  682.   isInAndBillable(const IString& theKey, const IString& theTask );
  683.  
  684. inline IString employeeNumber() const {return employeeNum;};
  685.  
  686. LTaskData&
  687.   operator = ( const LTaskData& from );
  688.  
  689. protected: //----------------------- PROTECTED---------------------------------
  690.  
  691. LTaskData&
  692.   load(const  IString empNum);
  693.  
  694. Items
  695.   getItems() const {return items;};
  696.  
  697. Items::Cursor
  698.   getItemsCursor() const {return itemsCur;};
  699.  
  700. private: //----------------------- PRIVATE ----------------------------------
  701.  
  702. Items
  703.   items;
  704.  
  705. Items::Cursor
  706.   itemsCur;
  707.  
  708. IString
  709.   employeeNum;
  710.  
  711. };
  712.  
  713.  
  714. //----------------------------------------------------------------------------
  715. // Class LQueryData :: LQueryData()
  716. //----------------------------------------------------------------------------
  717. class LQueryData : public IBase
  718. {
  719. public: // ---------------------- PUBLIC -------------------------------------
  720. //----------------------- Contructor/Destructor ------------------------------
  721. // Class LQueryData :: LQueryData()
  722. //----------------------------------------------------------------------------
  723.   LQueryData(const  IString qryName="");
  724.   ~LQueryData();
  725.  
  726. Boolean
  727.   saveIni(const  IString qryName="");
  728.  
  729. Boolean
  730.   setFirstWithKey(char*  aKey );
  731.  
  732. Boolean
  733.   getNextWithKey(char*   akey);
  734.  
  735. LQueryData&
  736.   deleteItem(IString& queryName );
  737.  
  738. Boolean
  739.   getItem(  IString& i1,
  740.             IString& i2,
  741.             IString& i3);
  742.  
  743. LQueryData& putItem(  const IString& i1,
  744.                      const IString& i2,
  745.                      const IString& i3 = IString(""),
  746.                      const IString& i4 = IString(""));
  747.  
  748. inline Boolean isValid() {return itemsCur.isValid();};
  749. inline IString queryName() {return QueryName;};
  750.  
  751. LQueryData&  emptyBag();
  752.  
  753. protected: //----------------------- PROTECTED ---------------------------------
  754.  
  755. LQueryData&
  756.   loadIni(const  IString qryName="");
  757.  
  758. private: //----------------------- PRIVATE---------------------------------
  759.  
  760. Items
  761.   items;
  762.  
  763. Items::Cursor
  764.   itemsCur;
  765.  
  766. IString             QueryName;    // the key
  767.  
  768. };
  769.  
  770.  
  771. //----------------------------------------------------------------------------
  772. // Class LDeleteEmployee :: LDeleteEmployee()
  773. //----------------------------------------------------------------------------
  774. class LDeleteEmployee : public IBase
  775. {
  776.  
  777. public: // ---------------------- PUBLIC -------------------------------------
  778.  
  779. //----------------------- Contructor/Destructor ------------------------------
  780. // Class LDeleteEmployee :: LDeleteEmployee()
  781. //----------------------------------------------------------------------------
  782.   LDeleteEmployee();
  783.   ~LDeleteEmployee();
  784.  
  785. LDeleteEmployee&
  786.   deleteFromDataBase(const IString& empNum);
  787.  
  788.  
  789. IProfile
  790.   emplDB,
  791.   acctDB,
  792.   badgeDB,
  793.   projectDB,
  794.   skillDB,
  795.   statusDB,
  796.   taskDB,
  797.   timecDB,
  798.   workDB;
  799.  
  800. };
  801.  
  802. #endif
  803.