PageRenderTime 28ms CodeModel.GetById 22ms app.highlight 4ms 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
 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
27#ifndef LL_LLCONTROLGROUPREADER_H
28#define LL_LLCONTROLGROUPREADER_H
29
30#include "stdtypes.h"
31#include <string>
32
33#include "v3math.h"
34#include "v3dmath.h"
35#include "v3color.h"
36#include "v4color.h"
37#include "llrect.h"
38
39class LLControlGroupReader
40{
41public:
42	LLControlGroupReader() {}
43	virtual ~LLControlGroupReader() {}
44
45	virtual std::string getString(const std::string& name) { return ""; }
46	virtual LLWString	getWString(const std::string& name) { return LLWString(); }
47	virtual std::string	getText(const std::string& name) { return ""; }
48	virtual LLVector3	getVector3(const std::string& name) { return LLVector3(); }
49	virtual LLVector3d	getVector3d(const std::string& name) { return LLVector3d(); }
50	virtual LLRect		getRect(const std::string& name) { return LLRect(); }
51	virtual BOOL		getBOOL(const std::string& name) { return FALSE; }
52	virtual S32			getS32(const std::string& name) { return 0; }
53	virtual F32			getF32(const std::string& name) {return 0.0f; }
54	virtual U32			getU32(const std::string& name) {return 0; }
55	virtual LLSD        getLLSD(const std::string& name) { return LLSD(); }
56
57	virtual LLColor4	getColor(const std::string& name) { return LLColor4(); }
58	virtual LLColor4	getColor4(const std::string& name) { return LLColor4(); }
59	virtual LLColor3	getColor3(const std::string& name) { return LLColor3(); }
60	
61	virtual void		setBOOL(const std::string& name, BOOL val) {}
62	virtual void		setS32(const std::string& name, S32 val) {}
63	virtual void		setF32(const std::string& name, F32 val) {}
64	virtual void		setU32(const std::string& name, U32 val) {}
65	virtual void		setString(const std::string&  name, const std::string& val) {}
66	virtual void		setVector3(const std::string& name, const LLVector3 &val) {}
67	virtual void		setVector3d(const std::string& name, const LLVector3d &val) {}
68	virtual void		setRect(const std::string& name, const LLRect &val) {}
69	virtual void		setColor4(const std::string& name, const LLColor4 &val) {}
70	virtual void    	setLLSD(const std::string& name, const LLSD& val) {}
71};
72
73#endif /* LL_LLCONTROLGROUPREADER_H */
74
75
76
77
78
79
80