Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCArgAllow__Strings.html below:
NCBI C++ ToolKit: CArgAllow_Strings Class Reference
Search Toolkit Book for CArgAllow_Strings
CArgAllow_Strings –. More...
#include <corelib/ncbiargs.hpp>
CArgAllow_Strings (NStr::ECase use_case=NStr::eCase) Constructor. More...
CArgAllow_Strings (initializer_list< string > values, NStr::ECase use_case=NStr::eCase) Constructor. More...
CArgAllow_Strings * Allow (const string &value) Add allowed string values. More...
CArgAllow_Strings & AllowValue (const string &value) Add allowed string values. More...
CArgAllow_Strings & operator, (const string &value) Short notation operator for adding allowed string values. More...
virtual ~CArgAllow (void) CObject (void) Constructor. More...
CObject (const CObject &src) Copy constructor. More...
virtual ~CObject (void) Destructor. More...
CObject & operator= (const CObject &src) THROWS_NONE Assignment operator. More...
bool CanBeDeleted (void) const THROWS_NONE Check if object can be deleted. More...
bool IsAllocatedInPool (void) const THROWS_NONE Check if object is allocated in memory pool (not system heap) More...
bool Referenced (void) const THROWS_NONE Check if object is referenced. More...
bool ReferencedOnlyOnce (void) const THROWS_NONE Check if object is referenced only once. More...
void AddReference (void) const Add reference to object. More...
void RemoveReference (void) const Remove reference to object. More...
void ReleaseReference (void) const Remove reference without deleting object. More...
virtual void DoNotDeleteThisObject (void) Mark this object as not allocated in heap – do not delete this object. More...
virtual void DoDeleteThisObject (void) Mark this object as allocated in heap – object can be deleted. More...
void * operator new (size_t size) Define new operator for memory allocation. More...
void * operator new[] (size_t size) Define new[] operator for 'array' memory allocation. More...
void operator delete (void *ptr) Define delete operator for memory deallocation. More...
void operator delete[] (void *ptr) Define delete[] operator for memory deallocation. More...
void * operator new (size_t size, void *place) Define new operator. More...
void operator delete (void *ptr, void *place) Define delete operator. More...
void * operator new (size_t size, CObjectMemoryPool *place) Define new operator using memory pool. More...
void operator delete (void *ptr, CObjectMemoryPool *place) Define delete operator. More...
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const Define method for dumping debug information. More...
CDebugDumpable (void) virtual ~CDebugDumpable (void) void DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const void DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const void DumpToConsole (void) const
CArgAllow_Strings –.
Define constraint to describe set of string values.
Argument to have only particular string values. Use the Allow() method to add the allowed string values, which can be daisy-chained.
Examples:
- SetConstraint("a", (new CArgAllow_Strings)-> Allow("foo")->Allow("bar")->Allow("etc"))
- You can use "operator,()" to shorten the notation: SetConstraint("b", &(*new CArgAllow_Strings, "foo", "bar", "etc"))
Definition at line 1672 of file ncbiargs.hpp.
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4