VR-Forces 4.1 Class Documentation
ifDIGuyAppearAndAnimationsResponse.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: ifDIGuyAppearAndAnimationsResponse.h,v $ $Revision: 1.5 $ $State: Exp $
7 ** Created: 4/24/08 MEM
8 *******************************************************************************/
9 
12 
14 
15 #ifndef ifDIGuyAppearAndAnimationsResponse_H_
16 #define ifDIGuyAppearAndAnimationsResponse_H_
17 
19 #include "vrfmsgs/vrfmsgsDefines.h"
20 #include <vlutil/vlNetTypes.h>
21 #include <vector>
22 
24 
28 {
29 public:
31  typedef std::pair<std::vector<DtString>, AlternateNamesList> DtAppearanceAnimationPair;
32  typedef std::map<DtString, DtAppearanceAnimationPair> DtAppearanceAnimationPairMap;
33 
34 public:
37 
40 
43 
45 
46  virtual int type() const;
47 
48  virtual DtSimInterfaceContent * clone() const;
49 
50  virtual void setDIGuyAppearances(const DtString&, const std::vector<DtString>&);
51  virtual void setDIGuyAnimations(const DtString&, const AlternateNamesList&);
52 
53  virtual int netRepSize() const;
54  virtual bool setFromNet(const char* contentBuffer,
55  unsigned contentSize);
56  virtual bool setToNet();
57 
58  virtual void printDataToString(DtString& str);
59 
60  static DtSimInterfaceContent* creator();
61 
62  const std::vector<DtString>& diGuyAppearances(DtAppearanceAnimationPairMap::const_iterator iter) const
63  {
64  return iter->second.first;
65  }
66 
67  const AlternateNamesList& diGuyAnimations(DtAppearanceAnimationPairMap::const_iterator iter) const
68  {
69  return iter->second.second;
70  }
71 
72  const DtAppearanceAnimationPairMap& animationAndAppearances() const
73  {
74  return myAnimationsAndAppearances;
75  }
76 
77 protected:
79 };
80 
81 #endif
82 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)