VR-Forces 4.0.4 Class Documentation
include/vrfmsgs/ifDIGuyAppearAndAnimationsResponse.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: ifDIGuyAppearAndAnimationsResponse.h,v $ $Revision: 1.5 $ $State: Exp $
00007 ** Created: 4/24/08 MEM
00008 *******************************************************************************/
00009 
00012 
00014 
00015 #ifndef ifDIGuyAppearAndAnimationsResponse_H_
00016 #define ifDIGuyAppearAndAnimationsResponse_H_
00017 
00018 #include <vrfExtProtocol/ifaceCont.h>
00019 #include "vrfmsgs/vrfmsgsDefines.h"
00020 #include <vlutil/vlNetTypes.h>
00021 #include <vector>                                          
00022 
00023 #include "vrfutil/diGuyCharacterData.h"
00024 
00027 class DT_DLL_vrfmsgs DtIfDIGuyAppearAndAnimationsResponse : public DtSimInterfaceContent
00028 {
00029 public:
00031    typedef std::pair<std::vector<DtString>, AlternateNamesList> DtAppearanceAnimationPair;
00032    typedef std::map<DtString, DtAppearanceAnimationPair> DtAppearanceAnimationPairMap;
00033 
00034 public:
00036    DtIfDIGuyAppearAndAnimationsResponse();
00037 
00039    DtIfDIGuyAppearAndAnimationsResponse(const DtIfDIGuyAppearAndAnimationsResponse & orig);
00040 
00042    const DtIfDIGuyAppearAndAnimationsResponse & operator=(const DtIfDIGuyAppearAndAnimationsResponse & orig);
00043 
00044    virtual ~DtIfDIGuyAppearAndAnimationsResponse();
00045 
00046    virtual int type() const;
00047 
00048    virtual DtSimInterfaceContent * clone() const;
00049 
00050    virtual void setDIGuyAppearances(const DtString&, const std::vector<DtString>&);
00051    virtual void setDIGuyAnimations(const DtString&, const AlternateNamesList&);
00052 
00053    virtual int netRepSize() const;
00054    virtual bool setFromNet(const char* contentBuffer, 
00055       unsigned contentSize);
00056    virtual bool setToNet();
00057 
00058    virtual void printDataToString(DtString& str);
00059 
00060    static DtSimInterfaceContent* creator();
00061 
00062    const std::vector<DtString>& diGuyAppearances(DtAppearanceAnimationPairMap::const_iterator iter) const
00063    {
00064       return iter->second.first;
00065    }
00066 
00067    const AlternateNamesList& diGuyAnimations(DtAppearanceAnimationPairMap::const_iterator iter) const
00068    {
00069       return iter->second.second;
00070    }
00071 
00072    const DtAppearanceAnimationPairMap& animationAndAppearances() const
00073    {
00074       return myAnimationsAndAppearances;
00075    }
00076 
00077 protected:
00078    DtAppearanceAnimationPairMap  myAnimationsAndAppearances;
00079 };
00080 
00081 #endif
00082 

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)