text: /**
     @file factory.h
     @brief This file is part of Kalinka mediaserver.
     @author Ivan Murashko <ivan.murashko@gmail.com>
  
     Copyright (c) 2007-2012 Kalinka Team
  
     Permission is hereby granted, free of charge, to any person obtaining
     a copy of this software and associated documentation files (the
     "Software"), to deal in the Software without restriction, including
     without limitation the rights to use, copy, modify, merge, publish,
     distribute, sublicense, and/or sell copies of the Software, and to
     permit persons to whom the Software is furnished to do so, subject to
     the following conditions:
  
     The above copyright notice and this permission notice shall be included
     in all copies or substantial portions of the Software.
  
     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
     CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
     TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
     SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  
     CHANGE HISTORY
  
     @date
     - 2009/05/27 created by ipp (Ivan Murashko)
     - 2009/08/02 header was changed by header.py script
     - 2010/01/06 header was changed by header.py script
     - 2011/01/01 header was changed by header.py script
     - 2012/02/03 header was changed by header.py script
  */
  
  #ifndef KLK_SNMPCOMMONFACTORY_H
  #define KLK_SNMPCOMMONFACTORY_H
  
  #include "snmp/table.h"
  
  namespace klk
  {
      namespace snmp
      {
          /**
             SNMP get status table request
          */
          const std::string GETSTATUSTABLE("get status table");
  
          /**
             @brief SNMP factory
  
             SNMP factory
  
             @ingroup grSNMP
          */
          class Factory
          {
          public:
              /**
                 Destructor
              */
              virtual ~Factory();
  
              /**
                 Replaces the destructor
              */
              virtual void destroy();
  
              /**
                 Retrives a new table data
              */
              void retriveData();
  
              /**
                 Clears
              */
              void clearData();
  
              /**
                 Retrives next data row
              */
              TableRow* getNext();
          protected:
              /**
                 Constructor
              */
              Factory(const std::string& modid);
          private:
              const std::string m_modid; ///< module id
              TableRowContainer m_table; ///< table container
              TableRowContainer::iterator m_counter; ///< table cont. iter.
          private:
              /**
                 Assigment operator
                 @param[in] value - the copy param
              */
              Factory& operator=(const Factory& value);
  
              /**
                 Copy constructor
                 @param[in] value - the copy param
              */
              Factory(const Factory& value);
          };
      }
  }
  
  #endif //KLK_SNMPCOMMONFACTORY_H
  