library of assembled shared sources

http://lass.cocamware.com

lass::io::MatlabOStream Class Reference

Output stream for writing a selection of geometric primitives to matlab M files. More...

#include <matlab_o_stream.h>


Public Member Functions

 MatlabOStream ()
 MatlabOStream (const char *iFilename, std::ios::openmode iOpenMode=std::ios::out|std::ios::trunc)
virtual ~MatlabOStream ()
void setColor (MatlabColor iColor)
const std::string & color () const
void setFlag (const std::string &iName, bool iValue)
bool flag (const std::string &iName, bool iDefault=false) const

Private Types

typedef std::map< std::string,
bool > 
TFlags

Private Attributes

TFlags flags_
MatlabColor color_


Detailed Description

Output stream for writing a selection of geometric primitives to matlab M files.

Author:
Bram de Greve (bramz@users.sourceforge.net)

Tom De Muer (tomdemuer@users.sourceforge.net)

Distributed under the terms of the GPL (GNU Public License)

The LASS License:

Copyright 2004-2006 Bram de Greve and Tom De Muer

LASS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition at line 106 of file matlab_o_stream.h.


Member Typedef Documentation

typedef std::map<std::string, bool> lass::io::MatlabOStream::TFlags [private]

Definition at line 149 of file matlab_o_stream.h.


Constructor & Destructor Documentation

lass::io::MatlabOStream::MatlabOStream (  )  [inline]

Definition at line 109 of file matlab_o_stream.h.

lass::io::MatlabOStream::MatlabOStream ( const char *  iFilename,
std::ios::openmode  iOpenMode = std::ios::out | std::ios::trunc 
) [inline]

Definition at line 115 of file matlab_o_stream.h.

virtual lass::io::MatlabOStream::~MatlabOStream (  )  [inline, virtual]

Definition at line 121 of file matlab_o_stream.h.


Member Function Documentation

void lass::io::MatlabOStream::setColor ( MatlabColor  iColor  )  [inline]

Definition at line 125 of file matlab_o_stream.h.

References color_.

Referenced by lass::spat::PlanarMesh::insertEdge(), and lass::spat::PlanarMesh::shoot().

const std::string& lass::io::MatlabOStream::color (  )  const [inline]

void lass::io::MatlabOStream::setFlag ( const std::string &  iName,
bool  iValue 
) [inline]

Definition at line 136 of file matlab_o_stream.h.

References flags_.

bool lass::io::MatlabOStream::flag ( const std::string &  iName,
bool  iDefault = false 
) const [inline]

Definition at line 141 of file matlab_o_stream.h.

References flags_.


Field Documentation

Definition at line 151 of file matlab_o_stream.h.

Referenced by flag(), and setFlag().

Definition at line 152 of file matlab_o_stream.h.

Referenced by color(), and setColor().


The documentation for this class was generated from the following file:

Generated on Mon Nov 10 14:22:09 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo