Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

fbwrap::FBwStringField Class Reference

String Field Class. More...

#include <FBwStringField.h>

Inheritance diagram for fbwrap::FBwStringField:

fbwrap::FBwField List of all members.

Public Methods

 FBwStringField (string pName, short MxLen=127, bool pVarying=false)
 Constructor.

 FBwStringField (const FBwStringField &f)
 Copy constructor.

virtual std::ostream & DisplayText (std::ostream &o) const
 output of formated string value to stream

virtual string AsString () const
 Unformated value.

virtual long AsInteger () const
 As integer if cast is posible, 0 otherwise.

virtual void SetAsString (const string &pvalue)
 set value from string

virtual void ConvertStoV ()
 Convert from internal representation to c++ type value.

virtual void ConvertVtoS ()
virtual void BindPtr (char **p)
 Method for binding to XSQLVAR.

string & Value ()
virtual ~FBwStringField ()
 Destructor.

bool IsVarying ()
 Tests wether firebird string is varying.

short MaxLen ()
 Returns maximum length of string.

void SetMaxLen (short mxLen)
 Sets maximum length of string.

void SetFill (bool v=true)
 If set to true, the string is right filled with spaces.

void SetValueTrim (bool how=true)
 Trim values.

FBwFieldClone () const
 Get a copy of this field.

virtual short GetLen ()
 Returns the current field length.


Protected Methods

void * GetPtr ()
virtual void bCopy (const FBwField *fld)
virtual int ByteSize ()
 Return size of buffer capable of holding string data.


Detailed Description

String Field Class.


Constructor & Destructor Documentation

fbwrap::FBwStringField::FBwStringField string    pName,
short    MxLen = 127,
bool    pVarying = false
 

Constructor.

Parameters:
pName:  field name
MxLen:  Length of field expected
pVarying:  string of variable length (VARCHAR)


Member Function Documentation

void fbwrap::FBwStringField::SetFill bool    v = true [inline]
 

If set to true, the string is right filled with spaces.

only for fixed length strings


The documentation for this class was generated from the following files:
Generated on Fri Jan 31 08:30:05 2003 for fbwrap by doxygen1.2.17