Source: record.h


Annotated List
Files
Globals
Hierarchy
Index
#ifndef RECORD_H
#define RECORD_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <qlist.h>
#include <qstring.h>

#include "object.h"

namespace KDB {

class Field;

/*
 * The fields should be accessed like an associative array:
 *
 * <pre>
 * 	rec["field1"] = "value";
 * or
 * 	rec[1] = "value";
 * </pre>
 *
 * there are two record types: updatable and read only, depending on the
 * parent recordset
 *
 * @short A collection of fields with relevant values.
 */
class Record : public Object {

    Q_OBJECT

 public:
    
    typedef QListIterator<Field> iterator; 

 public:
    Record();

    virtual ~Record();

    iterator begin();

    Field & operator[](const QString& name);
    Field & operator[](int index);

    virtual void update();

 protected:
    QList<Field> m_fields ;
       
};
 
}

#endif



Generated by: pradu@server.rete.casa on Fri Jul 28 15:15:55 2000, using kdoc 2.0a36.