CODSymbolConverter Class

class CODSymbolConverter

Objective diagram 1.01 conversion utilities.

Defined in: OdSymbolConverter.h

Class Members

 CODSymbolConverter(CODModel* pModel)

Constructor

virtual  ~CODSymbolConverter()

Destructor

CODComponent*  LoadSymbolFile(CArchive& ar)

Deserializes an OD 1.01 saved symbol component.

void  LoadSymbolFileComponents(CArchive& ar, CODComponentSet& setComponents)

Deserializes an OD 1.01 saved symbol component and returns the child components.

virtual CODModel*  GetModel()

Returns the model to contain deserialized symbol.

virtual const CODModel*  GetModel() const

Returns const pointer to model to contain deserialized symbol.

virtual void  SetModel(CODModel* pModel)

Sets the model to contain deserialized symbol.

BOOL  ReadObjHeader(CArchive & ar, CString& strClassName, UINT& nSchema, WORD& wTag, DWORD& dwObjectTag)

Reads the object header for a component saved via CArchive::WriteObject().

CODComponent*  ReadUnknownComponent(CArchive& ar, CODComponent* pComp=NULL)

Reads a component of unknown type serialized via CArchive::WriteObject().

void  ReadUnknownComponentList(CODComponentSet& setComps, CArchive& ar)

Reads a list of components of unknown type serialized via CArchive::WriteObject().

CODComponent*  ReadComponent(CArchive& ar, CODComponent* pComp=NULL)

Reads a (base class) component serialized via CArchive::WriteObject().

CODComponent*  ReadComposite(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODComposite component serialized via CArchive::WriteObject().

CODSymbolComponent*  ReadSymbolComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODSymbolComp component.

CODLineComponent*  ReadArrowComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODArrowComp component.

CODPolygonComponent*  ReadArrowComp(CArchive& ar, CODPolygonComponent* pComp)

Reads an OD 1.01 CODArrowComp component.

CODImageComponent*  ReadBitmapComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODArrowComp component.

CODComponent*  ReadBorderComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODArrowComp component.

CODPortComponent*  ReadConnector(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODArrowComp component.

CODEllipseComponent*  ReadEllipseComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODEllipseComp component.

CODLineComponent*  ReadLineComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODLineComp component.

CODLineComponent*  ReadMultiLineComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODMultiLineComp component.

CODLinkComponent*  ReadLinkComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODLinkComp component.

CODCirclePort*  ReadPinComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODPinComp component.

CODPolygonComponent*  ReadPolygonComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODPolygonComp component.

CODRectComponent*  ReadRectComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODRectComp component.

CODLabelComponent*  ReadSymTextComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODSymTextComp component.

CODTextComponent*  ReadTextComp(CArchive& ar, CODComponent* pComp=NULL)

Reads an OD 1.01 CODTextComp component.

LPTSTR  ReadString(CArchive& ar)

Reads a string saved via OD 1.01 CODCatalog::WriteString() method.

LOGBRUSH*  ReadBrush(CArchive& ar)

Reads a brush saved via OD 1.01 CODCatalog::WriteBrush() method.

COLORREF  ReadColor(CArchive& ar)

Reads a color value saved via OD 1.01 CODCatalog::WriteColor() method.

LOGFONT*  ReadFont(CArchive& ar)

Reads a font saved via OD 1.01 CODCatalog::WriteFont() method.

BOOL  ReadOpaqueText(CArchive& ar)

Reads opaque text flag saved via OD 1.01 CODCatalog::WriteOpaqueText() method.

LOGPEN*  ReadPen(CArchive& ar)

Reads a pen saved via OD 1.01 CODCatalog::WritePen() method.

void  ReadVertices(CArchive& in, CPoint*& points, int& nCount)

Reads a vertex array saved via OD 1.01 CODCatalog::WriteVertices() method.

CODTransform*  ReadTransformer(CArchive& ar)

Reads a transformer saved via OD 1.01 CODCatalog::WriteTransformer() method.

HBITMAP  ReadHBitmap(CArchive& ar, CDC* pDC)

Reads a bitmap saved in OD 1.01 and returns a handle.

HBITMAP  HBitmapFromDIB(char HUGE* pDIB, CDC* pDC)

Returns a bitmap given serialized DIB data.

UINT  GetBmpPaletteSize(UINT nBitsPerPixel, UINT nSize = sizeof(RGBQUAD))

Determines bitmap palette size given color depth and serialized palette size (bytes).

UINT  GetBmpPaletteSize(BITMAPINFOHEADER* pHeader)

Determines bitmap palette size given a pointer to its header structure.

CMap&ltDWORD,DWORD,LPODSYMCONVCLASS,LPODSYMCONVCLASS> m_mapClass

Maps object tags assigned in CArchive::WriteObject() to class information.

CMap&ltDWORD,DWORD,CODComponent*,CODComponent*> m_mapLoad

Maps object tags assigned in CArchive::WriteObject() to object instances.

int m_nMapCount

Count of mapped components.

CODModel* m_pModel

Pointer to diagram model to contain converted components.

CList&ltCODComponent*,CODComponent*> m_listComponents

The list of components (components are AddRef()'d, then Release()'ed in the destructor).