code::ShapeType Class Reference

Inheritance diagram for code::ShapeType:

code::MultiPointShapeType code::NullShapeType code::PointShapeType code::PolygonShapeType code::PolyLineShapeType List of all members.

Detailed Description

An abstract ShapeType corresponding to ESRI's shapefiles.

NOTE: ESRI's data are stored in Intel format. So, these createObject and getNetworkFormat functions should be invoked on an Intel-byte ordered stream.

Author:
Lakshman
Version:
Id
code_ShapeType.h,v 1.12 2009/06/02 20:17:37 lakshman Exp


Public Types

 ESRI_Null = 0
 ESRI_Point = 1
 ESRI_PolyLine = 3
 ESRI_Polygon = 5
 ESRI_MultiPoint = 8
 ESRI_PointZ = 11
 ESRI_PolyLineZ = 13
 ESRI_PolygonZ = 15
 ESRI_MultipointZ = 18
 ESRI_PointM = 21
 ESRI_PolyLineM = 23
 ESRI_PolygonM = 25
 ESRI_MultipointM = 28
 ESRI_MultiPatch = 31
enum  ESRI_Shape {
  ESRI_Null = 0, ESRI_Point = 1, ESRI_PolyLine = 3, ESRI_Polygon = 5,
  ESRI_MultiPoint = 8, ESRI_PointZ = 11, ESRI_PolyLineZ = 13, ESRI_PolygonZ = 15,
  ESRI_MultipointZ = 18, ESRI_PointM = 21, ESRI_PolyLineM = 23, ESRI_PolygonM = 25,
  ESRI_MultipointM = 28, ESRI_MultiPatch = 31
}

Public Member Functions

virtual ~ShapeType ()
virtual void createObject (InputStream &is)=0 throw (std::string)
 Fill the object with the InputStream.
virtual void createNetworkFormat (OutputStream &os) const =0
 Write a network representation into the stream.

Static Public Member Functions

static SmartPtr< ShapeTypecreateShape (int type)

Public Attributes

ESRI_Shape type
 ESRI's types .

Protected Member Functions

 ShapeType (ESRI_Shape esri_shape)


Member Enumeration Documentation

enum code::ShapeType::ESRI_Shape

Enumerator:
ESRI_Null 
ESRI_Point 
ESRI_PolyLine 
ESRI_Polygon 
ESRI_MultiPoint 
ESRI_PointZ 
ESRI_PolyLineZ 
ESRI_PolygonZ 
ESRI_MultipointZ 
ESRI_PointM 
ESRI_PolyLineM 
ESRI_PolygonM 
ESRI_MultipointM 
ESRI_MultiPatch 


Constructor & Destructor Documentation

virtual code::ShapeType::~ShapeType (  )  [inline, virtual]

code::ShapeType::ShapeType ( ESRI_Shape  esri_shape  )  [inline, protected]


Member Function Documentation

virtual void code::ShapeType::createNetworkFormat ( OutputStream os  )  const [pure virtual]

Write a network representation into the stream.

The shape type is also written in and should not be written before hand. NOTE: ESRI's data are stored in Intel format. So, these createObject and getNetworkFormat functions should be invoked on an Intel-byte ordered stream.

Implemented in code::NullShapeType, code::PointShapeType, code::MultiPointShapeType, code::PolyLineShapeType, and code::PolygonShapeType.

virtual void code::ShapeType::createObject ( InputStream is  )  throw (std::string) [pure virtual]

Fill the object with the InputStream.

the first integer should be used to obtain the right ShapeType to invoke this function on. NOTE: ESRI's data are stored in Intel format. So, these createObject and getNetworkFormat functions should be invoked on an Intel-byte ordered stream.

Implemented in code::NullShapeType, code::PointShapeType, code::MultiPointShapeType, code::PolyLineShapeType, and code::PolygonShapeType.

static SmartPtr<ShapeType> code::ShapeType::createShape ( int  type  )  [static]


Member Data Documentation

ESRI_Shape code::ShapeType::type

ESRI's types .

.. 0 is Null, 1 is Point, etc.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7