VR-Forces 4.0.4 Class Documentation
include/vrfExtObjects/stringList.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2010 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: stringList.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *********************************************************************/
00008 #ifndef stringList_H_
00009 #define stringList_H_
00010 
00011 #include <vlutil/vlString.h>
00012 
00013 #include <vrfExtObjects/vrfExtObjectsDefines.h>
00014 class DT_DLL_vrfExtObjects DtStringList
00015 {
00016 public:
00018    DtStringList();
00019 
00021    virtual ~DtStringList();
00022 
00024    DtStringList(const DtStringList& orig);
00025 
00027    DtStringList& operator=(
00028       const DtStringList& orig);
00029 
00031    int operator==(const DtStringList& other) const;   
00032    int operator!=(const DtStringList& other) const;   
00033 
00036    virtual void setNumStrings(int num);
00037    virtual int numStrings() const;   
00038 
00040    virtual bool setString(int index, 
00041       const DtString& str);
00042 
00045    virtual const DtString& string(
00046       int index, bool* valid = 0) const;
00047 
00049    virtual void printData() const;
00050    virtual void printDataToStream(std::ostream& stream) const;
00051 
00053    virtual void setFromNet(const void* netRep, int length);
00054 
00058    virtual const void* netRep(int* size = 0) const;
00059 
00061    virtual int netSize() const;
00062 
00063 protected:
00064    int myNumberOfStrings;
00065    DtString* myStrings;   
00066    DtString myEmptyString;
00067    void* myNetRep;
00068 };
00069 
00070 #endif
00071 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)