GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloBlobRecordAttribute.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOBLOBRECORDATTRIBUTE_H
2#define INC_GLOBLOBRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include <string>
38#include <sstream>
39#include "GloTypes.h"
41#include "EuBlob.h"
42//-----------------------------------------------------------------------------
43namespace glo
44{
45 //---------------------------------------------------------------------------
46 #ifdef _MSC_VER
47 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
48 #pragma warning( disable : 4251 )
49 #endif
50 //---------------------------------------------------------------------------
68 {
69 private:
70 //============== Attribute
71 //-----------------------------------------------------------------------
82 //-----------------------------------------------------------------------
92 std::string m_sFileName;
93 //-----------------------------------------------------------------------
94
95 protected:
96 //============= Konstruktoren
97 //-----------------------------------------------------------------------
108 //-----------------------------------------------------------------------
121 //-----------------------------------------------------------------------
122
123 public:
124 //============= Konstruktoren
125 //-----------------------------------------------------------------------
149 const std::streampos & rFilePos );
150 //-----------------------------------------------------------------------
176 const eut::Blob & rValue,
177 const std::streampos & rFilePos );
178 //-----------------------------------------------------------------------
179
180 protected:
181 //============== Konstruktoren
182 //-----------------------------------------------------------------------
196 //-----------------------------------------------------------------------
197
198 public:
199 //============== Methoden
200 //-----------------------------------------------------------------------
211 virtual void initNew();
212 //-----------------------------------------------------------------------
224 void setValue( const eut::Blob & rValue );
225 //-----------------------------------------------------------------------
245 int setValue( char * pData, std::size_t nDataSize, bool bCopy = true );
246 //-----------------------------------------------------------------------
263 void setFileName( const std::string & rsFileName );
264 //-----------------------------------------------------------------------
283 //-----------------------------------------------------------------------
295 virtual void setValueFromVoid( void * pValue );
296 //-----------------------------------------------------------------------
308 const eut::Blob & getValueRef() const;
309 //-----------------------------------------------------------------------
325 const std::string & getFileName() const;
326 //-----------------------------------------------------------------------
338 virtual std::string getValueAsString() const;
339 //-----------------------------------------------------------------------
351 virtual std::string getValueAsDataString() const;
352 //-----------------------------------------------------------------------
364 virtual std::string getValueAsStreamString() const;
365 //-----------------------------------------------------------------------
377 virtual std::string getValueAsDisplayString() const;
378 //-----------------------------------------------------------------------
390 virtual void * getValueAsVoidPointer();
391 //-----------------------------------------------------------------------
408 virtual unsigned short getDataFieldLength() const;
409 //-----------------------------------------------------------------------
425 virtual bool dataIsFieldContent() const;
426 //-----------------------------------------------------------------------
441 virtual std::string getDataReference() const;
442 //-----------------------------------------------------------------------
459 virtual void setDataReference( const std::string & rsDataReference );
460 //-----------------------------------------------------------------------
481 virtual int updateDataReference( const std::string & rsDataPath,
482 DATA_REFERENCE_INFO MethodInfo );
483 //-----------------------------------------------------------------------
512 virtual int getFormattedFieldContents( std::string & rsRetVal,
513 DATA_REFERENCE_INFO & rRetValInfo,
514 ObjID ObjID );
515 //-----------------------------------------------------------------------
535 virtual int takeValue( const BaseRecordAttribute & rT );
536 //-----------------------------------------------------------------------
550 virtual int getAttributeValueBlob( eut::Blob & rBlob ) const;
551 //-----------------------------------------------------------------------
572 //-----------------------------------------------------------------------
573
574 //============== Operatoren
575 //-----------------------------------------------------------------------
577
588 bool operator== ( const BlobRecordAttribute & rT ) const;
589 bool operator!= ( const BlobRecordAttribute & rT ) const;
591 //-----------------------------------------------------------------------
592
593 private:
594 //============== Operatoren
595 //-----------------------------------------------------------------------
606 //-----------------------------------------------------------------------
607 };
608 //---------------------------------------------------------------------------
609 // @@UserEntry
610 #ifdef _MSC_VER
611 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
612 #pragma warning( default : 4251 )
613 #endif
614 //---------------------------------------------------------------------------
615} // namespace glo
616#endif
Header für Blob
Header für BaseRecordAttribute
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
#define __glo_export_dll
Definition GloTypes.h:63
Diese Klasse erlaubt das Bearbeiten eines Blobs (einfügen, kopieren, durchsuchen etc....
Definition EuBlob.h:60
Basisklasse für die einzelnen Attribute eines Record.
Definition GloBaseRecordAttribute.h:109
Klasse für die Blob-Attribute eines Record.
Definition GloBlobRecordAttribute.h:68
virtual int updateDataReference(const std::string &rsDataPath, DATA_REFERENCE_INFO MethodInfo)
std::string m_sFileName
Definition GloBlobRecordAttribute.h:92
virtual int getFormattedFieldContents(std::string &rsRetVal, DATA_REFERENCE_INFO &rRetValInfo, ObjID ObjID)
virtual unsigned short getDataFieldLength() const
void setFileName(const std::string &rsFileName)
eut::Blob m_Value
Definition GloBlobRecordAttribute.h:81
virtual std::string getDataReference() const
int setValue(char *pData, std::size_t nDataSize, bool bCopy=true)
BlobRecordAttribute(ClassInfoAttribute *pType, const eut::Blob &rValue, const std::streampos &rFilePos)
virtual void setDataReference(const std::string &rsDataReference)
virtual int takeValue(const BaseRecordAttribute &rT)
virtual std::string getValueAsString() const
void setValue(const eut::Blob &rValue)
virtual void initNew()
virtual std::string getValueAsStreamString() const
virtual void setValueFromVoid(void *pValue)
virtual std::string getValueAsDisplayString() const
BlobRecordAttribute(const BlobRecordAttribute &rT)
void setDeterminedFileNameFromAttributeValue(ObjID ObjID)
BlobRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
virtual std::string getValueAsDataString() const
virtual int getAttributeValueBlob(eut::Blob &rBlob) const
const std::string & getFileName() const
virtual BaseRecordAttribute * getCopy()
virtual bool dataIsFieldContent() const
virtual void * getValueAsVoidPointer()
const eut::Blob & getValueRef() const
In Objekten dieser Klasse sind die Information für GlobalObjects, wie ein persistentes Klassenattribu...
Definition GloClassInfoAttribute.h:76
Ein Objekt-ID besteht aus der Klassen-ID, einer Datenbank-ID und der eigentlichen eindeutigen ObjektZ...
Definition GloObjID.h:77
Definition GloAbstractBaseLot.h:42
unsigned long DATA_REFERENCE_INFO
Definition GloRecordAttributeTypes.h:745