PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llxml/llcontrolgroupreader.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 80 lines | 40 code | 15 blank | 25 comment | 0 complexity | 0ff5acf04336e819becd1c80e727460e MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llcontrolgroupreader.h
  3. * @brief Interface providing readonly access to LLControlGroup (intended for unit testing)
  4. *
  5. * $LicenseInfo:firstyear=2001&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLCONTROLGROUPREADER_H
  27. #define LL_LLCONTROLGROUPREADER_H
  28. #include "stdtypes.h"
  29. #include <string>
  30. #include "v3math.h"
  31. #include "v3dmath.h"
  32. #include "v3color.h"
  33. #include "v4color.h"
  34. #include "llrect.h"
  35. class LLControlGroupReader
  36. {
  37. public:
  38. LLControlGroupReader() {}
  39. virtual ~LLControlGroupReader() {}
  40. virtual std::string getString(const std::string& name) { return ""; }
  41. virtual LLWString getWString(const std::string& name) { return LLWString(); }
  42. virtual std::string getText(const std::string& name) { return ""; }
  43. virtual LLVector3 getVector3(const std::string& name) { return LLVector3(); }
  44. virtual LLVector3d getVector3d(const std::string& name) { return LLVector3d(); }
  45. virtual LLRect getRect(const std::string& name) { return LLRect(); }
  46. virtual BOOL getBOOL(const std::string& name) { return FALSE; }
  47. virtual S32 getS32(const std::string& name) { return 0; }
  48. virtual F32 getF32(const std::string& name) {return 0.0f; }
  49. virtual U32 getU32(const std::string& name) {return 0; }
  50. virtual LLSD getLLSD(const std::string& name) { return LLSD(); }
  51. virtual LLColor4 getColor(const std::string& name) { return LLColor4(); }
  52. virtual LLColor4 getColor4(const std::string& name) { return LLColor4(); }
  53. virtual LLColor3 getColor3(const std::string& name) { return LLColor3(); }
  54. virtual void setBOOL(const std::string& name, BOOL val) {}
  55. virtual void setS32(const std::string& name, S32 val) {}
  56. virtual void setF32(const std::string& name, F32 val) {}
  57. virtual void setU32(const std::string& name, U32 val) {}
  58. virtual void setString(const std::string& name, const std::string& val) {}
  59. virtual void setVector3(const std::string& name, const LLVector3 &val) {}
  60. virtual void setVector3d(const std::string& name, const LLVector3d &val) {}
  61. virtual void setRect(const std::string& name, const LLRect &val) {}
  62. virtual void setColor4(const std::string& name, const LLColor4 &val) {}
  63. virtual void setLLSD(const std::string& name, const LLSD& val) {}
  64. };
  65. #endif /* LL_LLCONTROLGROUPREADER_H */