// Code.h: interface for the CCode class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_CODE_H__E9066CC0_D48C_4E82_9C49_3A3C05EABCCB__INCLUDED_) #define AFX_CODE_H__E9066CC0_D48C_4E82_9C49_3A3C05EABCCB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CCode : public CObject { public: void Serialize(CArchive& ar); // to store or load this OOC object to a CArchive object BYTE ID; // the ID of this OOC object BOOL tx; // 1=if a transmitter assigned to this OOC object 0=otherwise BOOL rx; // 1=if a receiver assigned to this OOC object 0=otherwise // BOOL assigned; // It's not enough for two sets (Tx and Rx) CString str; // array of characters of this OOC object // BOOL* chip; BYTE acc; // Auto-Correlation Constraint of this OOC object BYTE ccc; // Cross-Correlation Constraint of this OOC object BYTE k; // Maximum Collision Parameter of this OOC object int w; // Weight of this OOC object int F; // Length of this OOC object CCode(BYTE id=0,CString cdstr="",int length=0,int weight=0,int mcp=0,int autoc=0,int cross=0); virtual ~CCode(); }; #endif // !defined(AFX_CODE_H__E9066CC0_D48C_4E82_9C49_3A3C05EABCCB__INCLUDED_)