App::ObjectIdentifier::String Class Reference

#include <ObjectIdentifier.h>

Public Member Functions

void checkImport (const App::DocumentObject *owner, const App::DocumentObject *obj=0, String *objName=0)
 
 FC_DEFAULT_CTORS (String)
 
const std::string & getString () const
 Returns the string. More...
 
bool isForceIdentifier () const
 
bool isRealString () const
 Return true is string need to be quoted. More...
 
 operator const char * () const
 
 operator std::string () const
 
bool operator!= (const String &other) const
 
bool operator< (const String &other) const
 
bool operator== (const String &other) const
 
bool operator> (const String &other) const
 
bool operator>= (const String &other) const
 
 String (const std::string &s="", bool _isRealString=false, bool _forceIdentifier=false)
 
 String (std::string &&s, bool _isRealString=false, bool _forceIdentifier=false)
 
std::string toString (bool toPython=false) const
 Returns a possibly quoted string. More...
 

Friends

class ObjectIdentifier
 

Constructor & Destructor Documentation

◆ String() [1/2]

App::ObjectIdentifier::String::String ( const std::string &  s = "",
bool  _isRealString = false,
bool  _forceIdentifier = false 
)

◆ String() [2/2]

App::ObjectIdentifier::String::String ( std::string &&  s,
bool  _isRealString = false,
bool  _forceIdentifier = false 
)

Member Function Documentation

◆ checkImport()

◆ FC_DEFAULT_CTORS()

App::ObjectIdentifier::String::FC_DEFAULT_CTORS ( String  )

◆ getString()

◆ isForceIdentifier()

bool App::ObjectIdentifier::String::isForceIdentifier ( ) const

◆ isRealString()

◆ operator const char *()

App::ObjectIdentifier::String::operator const char * ( ) const

◆ operator std::string()

App::ObjectIdentifier::String::operator std::string ( ) const

◆ operator!=()

bool App::ObjectIdentifier::String::operator!= ( const String other) const

◆ operator<()

bool App::ObjectIdentifier::String::operator< ( const String other) const

◆ operator==()

bool App::ObjectIdentifier::String::operator== ( const String other) const

◆ operator>()

bool App::ObjectIdentifier::String::operator> ( const String other) const

◆ operator>=()

bool App::ObjectIdentifier::String::operator>= ( const String other) const

◆ toString()

std::string ObjectIdentifier::String::toString ( bool  toPython = false) const

Returns a possibly quoted string.

Get a string representation of this object identifier.

Returns
String representation.

References App::quote().

Referenced by checkImport(), App::ObjectIdentifier::getStringList(), App::ObjectIdentifier::ResolveResults::resolveErrorString(), App::ObjectIdentifier::toPersistentString(), and App::ObjectIdentifier::toString().

Friends And Related Function Documentation

◆ ObjectIdentifier

friend class ObjectIdentifier
friend

The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/App/ObjectIdentifier.h
  • Sources/FreeCAD/src/App/ObjectIdentifier.cpp