Link to: source code | unit
cost directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
This class manages cost categories in the Goldenseal accounting software,
estimating software, unit
cost software, job costing software and construction
estimating software.
class CCategoryClass : public DB_DescribedPersistent
{
public:
static CLASS_DESC *sDescriptor;
static DB_PersistentObject *MakeNew() { return TCS_NEW CCategoryClass; }
CCategoryClass();
virtual ~CCategoryClass() {}
virtual DBid GetDBClassID(void) const { return id_CategoryClass; }
virtual void CopyFrom(DB_PersistentObject *source, const UInt8 copyFlags = 0);
virtual NeoSize GetFileLength(const CNeoFormat *aFormat) const
{ return DB_DescribedPersistent::GetFileLength(aFormat) + cFileLength; }
virtual Boolean GetMemberValue(const NeoTag aTag, const NeoTag aType,
void *aValue) const;
virtual Boolean SetMemberValue(const NeoTag aTag, const NeoTag aType,
const void *aValue);
virtual void ReadObject(CNeoStream *aStream, const NeoTag aTag);
virtual void WriteObject(CNeoStream *aStream, const NeoTag aTag);
virtual void FillDataReport(CTCS_Table *table, CNeoStream *stream) const;
virtual void SetEndSafetyTag() { mEndSafetyTag = tag_endsafetytag; }
protected:
// copied member
DBid mIncomeTaxField; // unused
UInt8 mPadding,
mPadding2;
// calculated members
TagType mEndSafetyTag; // TCS 9/8/02
enum
{
cCopyFileLength = sizeof(DBid) +
2*sizeof(UInt8),
cFileLength = cCopyFileLength +
sizeof(TagType)
};
}; |