Link to: source code | lists
directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
This class manages subcontractor billing rates for the Goldenseal accounting software,
time tracking software, project
management software and business management software.
class CSubBillingRate : public CBillingRate
{
public:
static CLASS_DESC *sDescriptor;
static DB_PersistentObject *MakeNew() { return TCS_NEW CSubBillingRate; }
CSubBillingRate();
virtual ~CSubBillingRate() {}
virtual DBid GetDBClassID(void) const { return id_SubBillingRate; }
virtual NeoSize GetFileLength(const CNeoFormat *aFormat) const;
virtual Boolean GetMemberValue(const TagType aTag, const TagType aType,
void *aValue) const;
virtual void ReadObject(CNeoStream *aStream, const TagType aTag);
virtual void WriteObject(CNeoStream *aStream, const TagType aTag);
virtual Boolean IsGrossRate() { return mCalcMethod == rate_Gross ||
mCalcMethod == rate_GrossPlusPercent; }
virtual void FillDataReport(CTCS_Table *table, CNeoStream *stream) const;
virtual void SetEndSafetyTag() { mEndSafetyTag = tag_endsafetytag; }
protected:
// calculated member TCS 9/8/02
TagType mEndSafetyTag;
enum
{
cCopyFileLength = 0,
cFileLength = cCopyFileLength +
sizeof(TagType)
};
}; |