CFx SDK Documentation  2020SP3
FxCommandsHistory.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 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"
FxPragmaPop.h
CFxHistoryCommand
Definition: FxCommandsHistory.h:111
CFxHistoryCommand::GetArgCount
virtual int GetArgCount()=0
CFxHistoryCommand::GetFlags
virtual OdInt32 GetFlags() const =0
CFxHistoryObject::ToString
virtual bool ToString(CFxString &output, const CFxUnitsFormatter *pFormatter) const =0
CFxHistoryObject::IsArg
virtual bool IsArg() const =0
CFxUnitsFormatter
Definition: FxUnitsFormatter.h:40
CFxHistoryCommand::GetNameGlobal
virtual const CFxString & GetNameGlobal() const =0
CFxHistoryCommand::~CFxHistoryCommand
~CFxHistoryCommand() override
DDKERNEL.h
CFxHistoryArg::~CFxHistoryArg
~CFxHistoryArg() override
CFxHistoryCommand::GetArg
virtual CFxHistoryObject * GetArg(unsigned int index)=0
index
GLuint index
Definition: gles2_ext.h:265
CFxHistoryArg::GetData
virtual OdResBufPtr GetData() const =0
CFxHistoryCommand::Cast
static CFxHistoryCommand * Cast(const CFxHistoryObject *pObject)
OdSmartPtr< OdResBuf >
CFxString
Definition: FxString.h:48
CFxHistoryObjectArray
std::vector< CFxHistoryObject * > CFxHistoryObjectArray
Definition: FxCommandsHistory.h:65
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
CFxHistoryArg::SetData
virtual void SetData(OdResBufPtr pValue)=0
CFxHistoryObject::IsCommand
virtual bool IsCommand() const =0
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxHistoryCommand::AddArg
virtual void AddArg(CFxHistoryObject *pArg)=0
CFxHistoryObject::~CFxHistoryObject
virtual ~CFxHistoryObject()
CFxHistoryArg::Create
static CFxHistoryArg * Create(OdResBufPtr value)
CFxHistoryObject
Definition: FxCommandsHistory.h:37
CFxHistoryObject::Copy
virtual CFxHistoryObject * Copy()=0
value
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
CFxHistoryCommand::Create
static CFxHistoryCommand * Create(const CFxString &local, const CFxString &global, int flags)
FxPragmaPush.h
ResBuf.h
CFxHistoryArg
Definition: FxCommandsHistory.h:74
CFxHistoryArg::Cast
static CFxHistoryArg * Cast(const CFxHistoryObject *pObject)
CFxHistoryCommand::GetNameLocal
virtual const CFxString & GetNameLocal() const =0