The DocumentT class is a helper class to store the name of a document. More...
#include <DocumentObserver.h>
Public Member Functions | |
DocumentT () | |
DocumentT (const DocumentT &) | |
DocumentT (const std::string &) | |
DocumentT (Document *) | |
std::string | getAppDocumentPython () const |
Document * | getDocument () const |
std::string | getDocumentName () const |
std::string | getGuiDocumentPython () const |
void | operator= (const Document *) |
void | operator= (const DocumentT &) |
void | operator= (const std::string &) |
~DocumentT () | |
The DocumentT class is a helper class to store the name of a document.
This can be useful when you cannot rely on that the document still exists when you have to access it.
DocumentT::DocumentT | ( | ) |
Constructor
DocumentT::DocumentT | ( | Document * | doc | ) |
Constructor
DocumentT::DocumentT | ( | const std::string & | name | ) |
Constructor
DocumentT::DocumentT | ( | const DocumentT & | doc | ) |
Constructor
DocumentT::~DocumentT | ( | ) |
Destructor
std::string DocumentT::getAppDocumentPython | ( | ) | const |
Get the App::Document as Python command.
References Gui::Application::activeDocument(), and Gui::Application::Instance.
Referenced by Gui::ViewProviderT::getAppDocumentPython().
Document * DocumentT::getDocument | ( | void | ) | const |
Get a pointer to the document or 0 if it doesn't exist any more.
References Gui::Application::getDocument(), and Gui::Application::Instance.
std::string DocumentT::getDocumentName | ( | ) | const |
Get the name of the document.
std::string DocumentT::getGuiDocumentPython | ( | ) | const |
Get the Gui::Document as Python command.
References Gui::Application::activeDocument(), and Gui::Application::Instance.
Referenced by Gui::ViewProviderT::getGuiDocumentPython().
void DocumentT::operator= | ( | const Document * | doc | ) |
Assignment operator
void DocumentT::operator= | ( | const DocumentT & | doc | ) |
Assignment operator
void DocumentT::operator= | ( | const std::string & | name | ) |
Assignment operator