Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUILoadAnimationsCmd.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUI_LOAD_ANIMATIONS_CMD_H
11#define GUI_LOAD_ANIMATIONS_CMD_H
12
13#include "GUICommand.h"
14
30{
31public:
32#if defined(GUILIANI_STREAM_GUI) || defined(GUILIANI_WRITE_GUI)
34 static const eC_Char XMLTAG_DESTANIMATIONSFILENAME[];
35#endif
36
38
43 CGUILoadAnimationsCmd(const eC_String& rkFileName,
44 bool bDeleteExistingAnimations = true);
45
46#if defined(GUILIANI_STREAM_GUI)
49
50 virtual void ReadFromStream();
51#endif
52
53#if defined(GUILIANI_WRITE_GUI)
54 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
55#endif
56
57protected:
59 virtual void Do();
60
62 eC_String m_kFileName;
63
66};
67
68#endif // GUI_LOAD_ANIMATIONS_CMD_H
Command object base class.
Definition: GUICommand.h:127
Loads animations and animation chains from a file and deletes all existing ones.
Definition: GUILoadAnimationsCmd.h:30
CGUILoadAnimationsCmd()
Constructor for factory. Do not use this constructor in user code.
virtual void ReadFromStream()
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
static const eC_Char XMLTAG_DESTANIMATIONSFILENAME[]
Definition: GUILoadAnimationsCmd.h:34
eC_String m_kFileName
File name (full path if needed) of the animations to be loaded.
Definition: GUILoadAnimationsCmd.h:62
CGUILoadAnimationsCmd(const eC_String &rkFileName, bool bDeleteExistingAnimations=true)
Constructs a LoadAnimationsCmd.
virtual void Do()
bool m_bDeleteExistingAnimations
Used to decide if all animations and animation chains should be deleted before loading.
Definition: GUILoadAnimationsCmd.h:65