CFx SDK Documentation  2022 SP0
FxCommandsHistory.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2021 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "FxPragmaPush.h"
20 
21 #include "DDKERNEL.h"
22 
23 #include <ResBuf.h>
24 
25 #include <vector>
26 
27 class CFxString;
28 class CFxUnitsFormatter;
29 class CFxCommandToken;
30 
37 {
38 public:
39  virtual ~CFxHistoryObject();
40 
44  virtual bool IsCommand() const = 0;
45 
49  virtual bool IsArg() const = 0;
50 
57  virtual bool ToString( CFxString& output, const CFxUnitsFormatter* pFormatter ) const = 0;
58 
62  virtual CFxHistoryObject* Copy() = 0;
63 };
64 
65 typedef std::vector<CFxHistoryObject*> CFxHistoryObjectArray;
66 
74 {
75 public:
76  ~CFxHistoryArg() override;
77 
81  virtual OdResBufPtr GetData() const = 0;
82 
87  virtual void SetData( OdResBufPtr pValue ) = 0;
88 
96 
102  static CFxHistoryArg* Cast( const CFxHistoryObject* pObject );
103 };
104 
111 {
112 public:
113  ~CFxHistoryCommand() override;
114 
118  virtual const CFxString& GetNameLocal() const = 0;
119 
123  virtual const CFxString& GetNameGlobal() const = 0;
124 
128  virtual OdInt32 GetFlags() const = 0;
129 
133  virtual int GetArgCount() = 0;
134 
140  virtual CFxHistoryObject* GetArg( unsigned int index ) = 0;
141 
146  virtual void AddArg( CFxHistoryObject* pArg ) = 0;
147 
155  static CFxHistoryCommand* Create( const CFxString& local, const CFxString& global, int flags );
156 
162  static CFxHistoryCommand* Cast( const CFxHistoryObject* pObject );
163 };
164 
165 #include "FxPragmaPop.h"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
std::vector< CFxHistoryObject * > CFxHistoryObjectArray
int OdInt32
static CFxHistoryArg * Create(OdResBufPtr value)
static CFxHistoryArg * Cast(const CFxHistoryObject *pObject)
~CFxHistoryArg() override
virtual OdResBufPtr GetData() const =0
virtual void SetData(OdResBufPtr pValue)=0
virtual const CFxString & GetNameGlobal() const =0
static CFxHistoryCommand * Create(const CFxString &local, const CFxString &global, int flags)
virtual CFxHistoryObject * GetArg(unsigned int index)=0
virtual void AddArg(CFxHistoryObject *pArg)=0
virtual const CFxString & GetNameLocal() const =0
~CFxHistoryCommand() override
static CFxHistoryCommand * Cast(const CFxHistoryObject *pObject)
virtual OdInt32 GetFlags() const =0
virtual int GetArgCount()=0
virtual CFxHistoryObject * Copy()=0
virtual ~CFxHistoryObject()
virtual bool ToString(CFxString &output, const CFxUnitsFormatter *pFormatter) const =0
virtual bool IsCommand() const =0
virtual bool IsArg() const =0
GLuint index
Definition: gles2_ext.h:265
GLsizei const GLfloat * value
Definition: gles2_ext.h:302